pub struct SegmentRef {
pub stream_id: String,
pub sequence: u64,
}Expand description
Lightweight reference used as a cache look-up key.
Fields§
§stream_id: StringStream identifier.
sequence: u64Sequence number within the stream.
Trait Implementations§
Source§impl Clone for SegmentRef
impl Clone for SegmentRef
Source§fn clone(&self) -> SegmentRef
fn clone(&self) -> SegmentRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SegmentRef
impl Debug for SegmentRef
impl Eq for SegmentRef
Source§impl Hash for SegmentRef
impl Hash for SegmentRef
Source§impl PartialEq for SegmentRef
impl PartialEq for SegmentRef
Source§fn eq(&self, other: &SegmentRef) -> bool
fn eq(&self, other: &SegmentRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SegmentRef
Auto Trait Implementations§
impl Freeze for SegmentRef
impl RefUnwindSafe for SegmentRef
impl Send for SegmentRef
impl Sync for SegmentRef
impl Unpin for SegmentRef
impl UnsafeUnpin for SegmentRef
impl UnwindSafe for SegmentRef
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