Struct pravega_client::event::reader::SliceMetadata
source · pub struct SliceMetadata {
pub start_offset: i64,
pub scoped_segment: String,
pub last_event_offset: i64,
pub read_offset: i64,
pub end_offset: i64,
pub partial_data_present: bool,
/* private fields */
}
Fields§
§start_offset: i64
§scoped_segment: String
§last_event_offset: i64
§read_offset: i64
§end_offset: i64
§partial_data_present: bool
Implementations§
source§impl SliceMetadata
impl SliceMetadata
sourcepub fn has_events(&self) -> bool
pub fn has_events(&self) -> bool
Method to verify if the Segment has pending events that can be read.
Trait Implementations§
source§impl Clone for SliceMetadata
impl Clone for SliceMetadata
source§fn clone(&self) -> SliceMetadata
fn clone(&self) -> SliceMetadata
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 SliceMetadata
impl Debug for SliceMetadata
Auto Trait Implementations§
impl Freeze for SliceMetadata
impl RefUnwindSafe for SliceMetadata
impl Send for SliceMetadata
impl Sync for SliceMetadata
impl Unpin for SliceMetadata
impl UnwindSafe for SliceMetadata
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