#[repr(i64)]pub enum WrapRole {
Recipient = 0,
SelfSend = 1,
Retry = 2,
}Expand description
Role of a stored wrap key. Recorded so the deletion path can label audit logs and so a future feature could selectively retain/purge by role (e.g. “drop self-send keys after N days”).
Variants§
Recipient = 0
First-attempt wrap delivered to the recipient.
SelfSend = 1
Wrap delivered to our own inbox for multi-device recovery.
Retry = 2
Retry wrap (used when an earlier attempt produced a different wrap event that may also be sitting on some relay).
Trait Implementations§
impl Copy for WrapRole
impl Eq for WrapRole
impl StructuralPartialEq for WrapRole
Auto Trait Implementations§
impl Freeze for WrapRole
impl RefUnwindSafe for WrapRole
impl Send for WrapRole
impl Sync for WrapRole
impl Unpin for WrapRole
impl UnsafeUnpin for WrapRole
impl UnwindSafe for WrapRole
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> 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