pub struct EncryptedLinkRecoveryMarker { /* private fields */ }Expand description
Minimal public marker identifying a peer’s current Encrypted Link attempt.
Implementations§
Source§impl EncryptedLinkRecoveryMarker
impl EncryptedLinkRecoveryMarker
Sourcepub fn new(
attempt_id: impl Into<String>,
created_at: impl Into<String>,
) -> Result<Self>
pub fn new( attempt_id: impl Into<String>, created_at: impl Into<String>, ) -> Result<Self>
Create a marker from a UUID-v4 attempt id and RFC3339 UTC timestamp.
Sourcepub fn new_v4(created_at: impl Into<String>) -> Result<Self>
pub fn new_v4(created_at: impl Into<String>) -> Result<Self>
Generate a marker with a fresh UUID-v4 attempt id.
Sourcepub fn attempt_id(&self) -> &str
pub fn attempt_id(&self) -> &str
Stable recovery attempt id.
Sourcepub fn created_at(&self) -> &str
pub fn created_at(&self) -> &str
Marker creation time as an RFC3339 UTC timestamp.
Trait Implementations§
Source§impl Clone for EncryptedLinkRecoveryMarker
impl Clone for EncryptedLinkRecoveryMarker
Source§impl Debug for EncryptedLinkRecoveryMarker
impl Debug for EncryptedLinkRecoveryMarker
impl Eq for EncryptedLinkRecoveryMarker
impl StructuralPartialEq for EncryptedLinkRecoveryMarker
Auto Trait Implementations§
impl Freeze for EncryptedLinkRecoveryMarker
impl RefUnwindSafe for EncryptedLinkRecoveryMarker
impl Send for EncryptedLinkRecoveryMarker
impl Sync for EncryptedLinkRecoveryMarker
impl Unpin for EncryptedLinkRecoveryMarker
impl UnsafeUnpin for EncryptedLinkRecoveryMarker
impl UnwindSafe for EncryptedLinkRecoveryMarker
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