Struct pravega_client::event::reader_group::StreamCutV1
source · pub struct StreamCutV1 { /* private fields */ }
Expand description
A set of segment/offset pairs for a single stream that represent a consistent position in the stream. (IE: Segment 1 and 2 will not both appear in the set if 2 succeeds 1, and if 0 appears and is responsible for keyspace 0-0.5 then other segments covering the range 0.5-1.0 will also be included.)
Implementations§
source§impl StreamCutV1
impl StreamCutV1
pub fn new(stream: ScopedStream, positions: HashMap<ScopedSegment, i64>) -> Self
sourcepub fn get_stream(&self) -> ScopedStream
pub fn get_stream(&self) -> ScopedStream
gets a clone of the internal scoped stream
sourcepub fn get_positions(&self) -> HashMap<ScopedSegment, i64>
pub fn get_positions(&self) -> HashMap<ScopedSegment, i64>
gets a clone of the internal positions
Trait Implementations§
source§impl Clone for StreamCutV1
impl Clone for StreamCutV1
source§fn clone(&self) -> StreamCutV1
fn clone(&self) -> StreamCutV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamCutV1
impl Debug for StreamCutV1
source§impl<'de> Deserialize<'de> for StreamCutV1
impl<'de> Deserialize<'de> for StreamCutV1
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StreamCutV1
impl PartialEq for StreamCutV1
source§fn eq(&self, other: &StreamCutV1) -> bool
fn eq(&self, other: &StreamCutV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StreamCutV1
impl Serialize for StreamCutV1
impl StructuralPartialEq for StreamCutV1
Auto Trait Implementations§
impl Freeze for StreamCutV1
impl RefUnwindSafe for StreamCutV1
impl Send for StreamCutV1
impl Sync for StreamCutV1
impl Unpin for StreamCutV1
impl UnwindSafe for StreamCutV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request