pub struct StreamId {
pub ms: u64,
pub seq: u64,
}Expand description
A stream entry’s <ms>-<seq> identifier. The Ord derivation compares
ms first then seq, which is exactly the monotonic order the protocol
requires; same derivation gives Eq, Hash, and the BTreeMap key bound.
Fields§
§ms: u64Unix milliseconds timestamp component.
seq: u64Per-ms sequence number, 0-based.
Implementations§
Trait Implementations§
impl Copy for StreamId
impl Eq for StreamId
Source§impl Ord for StreamId
impl Ord for StreamId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for StreamId
impl PartialOrd for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnsafeUnpin for StreamId
impl UnwindSafe for StreamId
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