pub struct KeyringBackend;Expand description
OS keyring backend.
Initialization is lazy and thread-safe. The first operation triggers
per-platform store selection via keyring_core::set_default_store. If a
default store has already been set (for example, by a test harness), the
backend will not replace it.
Implementations§
Trait Implementations§
Source§impl Backend for KeyringBackend
impl Backend for KeyringBackend
Source§fn validate(&self, url: &Url) -> Result<(), Error>
fn validate(&self, url: &Url) -> Result<(), Error>
Validate URL grammar without performing I/O. Read more
Source§fn get(&self, url: &Url) -> Result<SecretString, Error>
fn get(&self, url: &Url) -> Result<SecretString, Error>
Fetch the secret at the given URL. Read more
Source§fn put(&self, url: &Url, value: &SecretString) -> Result<(), Error>
fn put(&self, url: &Url, value: &SecretString) -> Result<(), Error>
Store a secret at the given URL. Read more
Source§fn list(&self, _url: &Url) -> Result<Vec<Entry>, Error>
fn list(&self, _url: &Url) -> Result<Vec<Entry>, Error>
List entries matching the URL prefix or pattern. Read more
Auto Trait Implementations§
impl Freeze for KeyringBackend
impl RefUnwindSafe for KeyringBackend
impl Send for KeyringBackend
impl Sync for KeyringBackend
impl Unpin for KeyringBackend
impl UnsafeUnpin for KeyringBackend
impl UnwindSafe for KeyringBackend
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