pub struct OsKeyRing { /* private fields */ }
Trait Implementations
sourceimpl KeyRing for LinuxOsKeyRing
impl KeyRing for LinuxOsKeyRing
fn new<S: AsRef<str>>(service: S) -> Result<Self>
fn get_secret<S: AsRef<str>>(&mut self, id: S) -> Result<KeyRingSecret>
fn list_secrets() -> Result<Vec<BTreeMap<String, String>>>
fn peek_secret<S: AsRef<str>>(id: S) -> Result<Vec<(String, KeyRingSecret)>>
fn set_secret<S: AsRef<str>, B: AsRef<[u8]>>(
&mut self,
id: S,
secret: B
) -> Result<()>
fn delete_secret<S: AsRef<str>>(&mut self, id: S) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for LinuxOsKeyRing
impl !Send for LinuxOsKeyRing
impl !Sync for LinuxOsKeyRing
impl Unpin for LinuxOsKeyRing
impl !UnwindSafe for LinuxOsKeyRing
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