pub struct Keyring { /* private fields */ }Expand description
Access the Keyring of the platform
Implementations§
source§impl Keyring
impl Keyring
sourcepub fn new<T, E>(app_name: T, username: E) -> Selfwhere
T: AsRef<str>,
E: AsRef<str>,
pub fn new<T, E>(app_name: T, username: E) -> Selfwhere
T: AsRef<str>,
E: AsRef<str>,
Create a Keyring
sourcepub fn get_password(&self) -> Result<String, Error>
pub fn get_password(&self) -> Result<String, Error>
Get password
sourcepub fn set_password<T>(&self, password: T) -> Result<(), Error>where
T: AsRef<str>,
pub fn set_password<T>(&self, password: T) -> Result<(), Error>where
T: AsRef<str>,
Set password
sourcepub fn delete_password(&self) -> Result<(), Error>
pub fn delete_password(&self) -> Result<(), Error>
Delete password