pub struct Identity(_);
Expand description
The standard age identity type, which can decrypt files encrypted to the corresponding
Recipient
.
Implementations
Trait Implementations
sourceimpl Identity for Identity
impl Identity for Identity
sourcefn unwrap_stanza(
&self,
stanza: &Stanza
) -> Option<Result<FileKey, DecryptError>>
fn unwrap_stanza(
&self,
stanza: &Stanza
) -> Option<Result<FileKey, DecryptError>>
Attempts to unwrap the given stanza with this identity. Read more
sourcefn unwrap_stanzas(
&self,
stanzas: &[Stanza]
) -> Option<Result<FileKey, DecryptError>>
fn unwrap_stanzas(
&self,
stanzas: &[Stanza]
) -> Option<Result<FileKey, DecryptError>>
Attempts to unwrap any of the given stanzas, which are assumed to come from the same age file header, and therefore contain the same file key. Read more
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more