pub(crate) struct LinuxSecret;Expand description
Secret API under Linux.
Trait Implementations§
Source§impl SecretExt for LinuxSecret
impl SecretExt for LinuxSecret
Source§async fn restore_sessions() -> Result<Vec<StoredSession>, SecretError>
async fn restore_sessions() -> Result<Vec<StoredSession>, SecretError>
Retrieves all sessions stored in the secret backend.
Source§async fn store_session(session: StoredSession) -> Result<(), SecretError>
async fn store_session(session: StoredSession) -> Result<(), SecretError>
Store the given session into the secret backend, overwriting any
previously stored session with the same attributes.
Source§async fn delete_session(session: &StoredSession)
async fn delete_session(session: &StoredSession)
Delete the given session from the secret backend.
Auto Trait Implementations§
impl Freeze for LinuxSecret
impl RefUnwindSafe for LinuxSecret
impl Send for LinuxSecret
impl Sync for LinuxSecret
impl Unpin for LinuxSecret
impl UnsafeUnpin for LinuxSecret
impl UnwindSafe for LinuxSecret
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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