pub struct Generation<Domain> { /* private fields */ }Expand description
Domain-tagged request generation. Different pipelines cannot compare clocks, even though both happen to be represented by an integer.
Implementations§
Source§impl<Domain: Copy + PartialEq> Generation<Domain>
impl<Domain: Copy + PartialEq> Generation<Domain>
pub fn tick(&mut self) -> Self
pub fn is_current(&self, other: Self) -> bool
Trait Implementations§
Source§impl<Domain: Clone> Clone for Generation<Domain>
impl<Domain: Clone> Clone for Generation<Domain>
impl<Domain: Copy> Copy for Generation<Domain>
Source§impl<Domain: Debug> Debug for Generation<Domain>
impl<Domain: Debug> Debug for Generation<Domain>
Source§impl<Domain> Default for Generation<Domain>
impl<Domain> Default for Generation<Domain>
Source§impl<Domain> Display for Generation<Domain>
impl<Domain> Display for Generation<Domain>
impl<Domain: Eq> Eq for Generation<Domain>
Source§impl<Domain: Hash> Hash for Generation<Domain>
impl<Domain: Hash> Hash for Generation<Domain>
Source§impl<Domain: PartialEq> PartialEq for Generation<Domain>
impl<Domain: PartialEq> PartialEq for Generation<Domain>
Source§impl<Domain> Serialize for Generation<Domain>
Diagnostic/wire serialization exposes the count without weakening the
domain-typed comparison API or round-tripping through Display.
impl<Domain> Serialize for Generation<Domain>
Diagnostic/wire serialization exposes the count without weakening the domain-typed comparison API or round-tripping through Display.
impl<Domain: PartialEq> StructuralPartialEq for Generation<Domain>
Auto Trait Implementations§
impl<Domain> Freeze for Generation<Domain>where
PhantomData<Domain>: Freeze,
impl<Domain> RefUnwindSafe for Generation<Domain>where
PhantomData<Domain>: RefUnwindSafe,
impl<Domain> Send for Generation<Domain>where
PhantomData<Domain>: Send,
impl<Domain> Sync for Generation<Domain>where
PhantomData<Domain>: Sync,
impl<Domain> Unpin for Generation<Domain>where
PhantomData<Domain>: Unpin,
impl<Domain> UnsafeUnpin for Generation<Domain>where
PhantomData<Domain>: UnsafeUnpin,
impl<Domain> UnwindSafe for Generation<Domain>where
PhantomData<Domain>: UnwindSafe,
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