pub struct SessionGeneration(/* private fields */);Expand description
Monotonically allocated identity for one accepted station session.
Events from a replaced connection retain its earlier generation, allowing consumers to discard work that arrives after a station reconnects.
Implementations§
Trait Implementations§
Source§impl Clone for SessionGeneration
impl Clone for SessionGeneration
Source§fn clone(&self) -> SessionGeneration
fn clone(&self) -> SessionGeneration
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 moreimpl Copy for SessionGeneration
Source§impl Debug for SessionGeneration
impl Debug for SessionGeneration
Source§impl Display for SessionGeneration
impl Display for SessionGeneration
impl Eq for SessionGeneration
Source§impl From<SessionGeneration> for u64
impl From<SessionGeneration> for u64
Source§fn from(value: SessionGeneration) -> Self
fn from(value: SessionGeneration) -> Self
Converts to this type from the input type.
Source§impl Hash for SessionGeneration
impl Hash for SessionGeneration
Source§impl Ord for SessionGeneration
impl Ord for SessionGeneration
Source§fn cmp(&self, other: &SessionGeneration) -> Ordering
fn cmp(&self, other: &SessionGeneration) -> Ordering
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 PartialEq for SessionGeneration
impl PartialEq for SessionGeneration
Source§impl PartialOrd for SessionGeneration
impl PartialOrd for SessionGeneration
impl StructuralPartialEq for SessionGeneration
Auto Trait Implementations§
impl Freeze for SessionGeneration
impl RefUnwindSafe for SessionGeneration
impl Send for SessionGeneration
impl Sync for SessionGeneration
impl Unpin for SessionGeneration
impl UnsafeUnpin for SessionGeneration
impl UnwindSafe for SessionGeneration
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