pub struct EncryptedLinkRecoveryContext { /* private fields */ }Expand description
Recovery attempts bound to one Encrypted Link, in the local peer’s order.
Swapping peers also swaps these IDs. An absent ID denotes a peer that has not published a recovery marker. IDs are public metadata, not key material.
Implementations§
Source§impl EncryptedLinkRecoveryContext
impl EncryptedLinkRecoveryContext
Sourcepub fn new(
local_attempt_id: Option<&str>,
remote_attempt_id: Option<&str>,
) -> Result<Self>
pub fn new( local_attempt_id: Option<&str>, remote_attempt_id: Option<&str>, ) -> Result<Self>
Validate the local and remote UUID-v4 recovery attempt IDs.
Sourcepub fn local_attempt_id(&self) -> Option<&str>
pub fn local_attempt_id(&self) -> Option<&str>
Local peer’s recovery attempt, if published.
Sourcepub fn remote_attempt_id(&self) -> Option<&str>
pub fn remote_attempt_id(&self) -> Option<&str>
Remote peer’s recovery attempt, if published.
Trait Implementations§
Source§impl Clone for EncryptedLinkRecoveryContext
impl Clone for EncryptedLinkRecoveryContext
Source§impl Debug for EncryptedLinkRecoveryContext
impl Debug for EncryptedLinkRecoveryContext
impl Eq for EncryptedLinkRecoveryContext
impl StructuralPartialEq for EncryptedLinkRecoveryContext
Auto Trait Implementations§
impl Freeze for EncryptedLinkRecoveryContext
impl RefUnwindSafe for EncryptedLinkRecoveryContext
impl Send for EncryptedLinkRecoveryContext
impl Sync for EncryptedLinkRecoveryContext
impl Unpin for EncryptedLinkRecoveryContext
impl UnsafeUnpin for EncryptedLinkRecoveryContext
impl UnwindSafe for EncryptedLinkRecoveryContext
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