pub struct ChainId { /* private fields */ }Expand description
Opaque queue-chain identity scoped to one reset epoch.
Implementations§
Source§impl ChainId
impl ChainId
Sourcepub const fn new(epoch: QueueEpoch, token: u64) -> Self
pub const fn new(epoch: QueueEpoch, token: u64) -> Self
Construct an identity from an epoch and transport-owned token.
Sourcepub const fn epoch(self) -> QueueEpoch
pub const fn epoch(self) -> QueueEpoch
Epoch in which this chain was published.
Trait Implementations§
impl Copy for ChainId
impl Eq for ChainId
impl StructuralPartialEq for ChainId
Auto Trait Implementations§
impl Freeze for ChainId
impl RefUnwindSafe for ChainId
impl Send for ChainId
impl Sync for ChainId
impl Unpin for ChainId
impl UnsafeUnpin for ChainId
impl UnwindSafe for ChainId
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