pub enum Sequence {
Bit8,
Bit16,
Bit32,
Bit64,
}Expand description
The frame sequence number’s resolution (v2 §2.16), as zenoh’s Bits.
Variants§
Implementations§
Source§impl Sequence
impl Sequence
Sourcepub fn window(self) -> u64
pub fn window(self) -> u64
The window (v2 §2.16): a frame half the mask or more past the last
one received is dropped as old. zenoh 1.10.1 masks a frame’s sequence
number to 7, 14, 28 and 32 bits (common/seq_num.rs, its
TransportSn being 32 bits), so the window is 64, 8,192, 2^27 and
2^31 frames.
Trait Implementations§
impl Copy for Sequence
impl Eq for Sequence
Source§impl Ord for Sequence
impl Ord for Sequence
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Sequence
impl PartialOrd for Sequence
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Forget for Sequence
impl Freeze for Sequence
impl Move for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more