Struct OutboxKey
pub struct OutboxKey { /* private fields */ }Expand description
The durable identity of one terminal finalization.
The key intentionally contains exactly the trial, owner worker and owner epoch. A later owner of the same trial therefore gets a different outbox record, while replaying the same terminal owner token addresses the same record.
Implementations§
§impl OutboxKey
impl OutboxKey
pub const fn new(trial: TrialId, worker: WorkerId, epoch: u64) -> Self
pub const fn new(trial: TrialId, worker: WorkerId, epoch: u64) -> Self
Constructs an outbox key from its durable identity parts.
pub const fn from_token(token: TrialOwnerToken) -> Self
pub const fn from_token(token: TrialOwnerToken) -> Self
Constructs the key belonging to an owner token.
Trait Implementations§
impl Copy for OutboxKey
§impl<'de> Deserialize<'de> for OutboxKey
impl<'de> Deserialize<'de> for OutboxKey
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OutboxKey
§impl Ord for OutboxKey
impl Ord for OutboxKey
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
§impl PartialOrd for OutboxKey
impl PartialOrd for OutboxKey
impl StructuralPartialEq for OutboxKey
Auto Trait Implementations§
impl Freeze for OutboxKey
impl RefUnwindSafe for OutboxKey
impl Send for OutboxKey
impl Sync for OutboxKey
impl Unpin for OutboxKey
impl UnsafeUnpin for OutboxKey
impl UnwindSafe for OutboxKey
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