pub struct RetryKey(/* private fields */);Expand description
An opaque framework digest identifying one retryable unit of work.
The key is a SHA-256 digest over the definition fingerprint, step logical
ID, failure phase, committed checkpoint identity, and the stable item or
output ordinal. It contains no item value, and it is never a telemetry
field: Debug redacts it and durable state sorts keys by digest.
Implementations§
Source§impl RetryKey
impl RetryKey
Sourcepub const fn from_bytes(digest: [u8; 32]) -> Self
pub const fn from_bytes(digest: [u8; 32]) -> Self
Restores a key an authorized durable-state adapter persisted.
Only a store that round-trips Self::as_bytes may call this. The
runtime always derives keys from framework inputs.
Trait Implementations§
impl Copy for RetryKey
impl Eq for RetryKey
Source§impl Ord for RetryKey
impl Ord for RetryKey
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
Source§impl PartialOrd for RetryKey
impl PartialOrd for RetryKey
impl StructuralPartialEq for RetryKey
Auto Trait Implementations§
impl Freeze for RetryKey
impl RefUnwindSafe for RetryKey
impl Send for RetryKey
impl Sync for RetryKey
impl Unpin for RetryKey
impl UnsafeUnpin for RetryKey
impl UnwindSafe for RetryKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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