pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new(dir: &Path, use_keyring: bool) -> Store
pub fn path(&self) -> PathBuf
pub fn default_server(&self) -> Option<String>
Sourcepub fn get(&self, server: &str) -> Option<String>
pub fn get(&self, server: &str) -> Option<String>
The stored key for server (an origin like https://semora.example.com).
pub fn key_name(&self, server: &str) -> Option<String>
pub fn set(&self, server: &str, key: &str, key_name: &str) -> Result<Stored>
pub fn remove(&self, server: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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