pub struct CredentialCache { /* private fields */ }Implementations§
Source§impl CredentialCache
impl CredentialCache
pub fn new() -> Self
pub fn get(&self, path: &Path) -> Option<&CachedCredential>
pub fn insert(&mut self, path: PathBuf, credential: Credential)
pub fn remove(&mut self, path: &Path)
pub fn evict_expired(&mut self)
pub fn evict_oldest_if_full(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CredentialCache
impl RefUnwindSafe for CredentialCache
impl Send for CredentialCache
impl Sync for CredentialCache
impl Unpin for CredentialCache
impl UnsafeUnpin for CredentialCache
impl UnwindSafe for CredentialCache
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