pub struct MemoryCachedState { /* private fields */ }
Expand description
Info we want callers to engine in memory for us so that subsequent syncs are faster. This should never be persisted to storage as it holds sensitive information, such as the sync decryption keys.
Implementations§
source§impl MemoryCachedState
impl MemoryCachedState
pub fn clear_sensitive_info(&mut self)
pub fn get_next_sync_after(&self) -> Option<SystemTime>
pub fn should_refresh_client(&self) -> bool
pub fn note_client_refresh(&mut self)
Trait Implementations§
source§impl Debug for MemoryCachedState
impl Debug for MemoryCachedState
source§impl Default for MemoryCachedState
impl Default for MemoryCachedState
source§fn default() -> MemoryCachedState
fn default() -> MemoryCachedState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryCachedState
impl !RefUnwindSafe for MemoryCachedState
impl Send for MemoryCachedState
impl !Sync for MemoryCachedState
impl Unpin for MemoryCachedState
impl !UnwindSafe for MemoryCachedState
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