pub struct WriteSecret { /* private fields */ }Expand description
I/O-free coroutine for saving a keyring entry secret.
Implementations§
Source§impl WriteSecret
impl WriteSecret
Sourcepub fn new(entry: KeyringEntry, secret: impl Into<SecretString>) -> Self
pub fn new(entry: KeyringEntry, secret: impl Into<SecretString>) -> Self
Creates a new coroutine for the given entry and secret.
Sourcepub fn resume(&mut self, arg: Option<KeyringIo>) -> WriteSecretResult
pub fn resume(&mut self, arg: Option<KeyringIo>) -> WriteSecretResult
Makes the coroutine progress.
Trait Implementations§
Source§impl Clone for WriteSecret
impl Clone for WriteSecret
Source§fn clone(&self) -> WriteSecret
fn clone(&self) -> WriteSecret
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WriteSecret
impl RefUnwindSafe for WriteSecret
impl Send for WriteSecret
impl Sync for WriteSecret
impl Unpin for WriteSecret
impl UnwindSafe for WriteSecret
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