[][src]Struct sync15::MemoryCachedState

pub struct MemoryCachedState {
    last_client_info: Option<ClientInfo>,
    last_global_state: Option<GlobalState>,
    next_sync_after: Option<SystemTime>,
    next_client_refresh_after: Option<SystemTime>,
}

Info we want callers to store 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.

Fields

last_client_info: Option<ClientInfo>last_global_state: Option<GlobalState>next_sync_after: Option<SystemTime>next_client_refresh_after: Option<SystemTime>

Implementations

impl MemoryCachedState[src]

pub fn clear_sensitive_info(&mut self)[src]

pub fn get_next_sync_after(&self) -> Option<SystemTime>[src]

pub fn should_refresh_client(&self) -> bool[src]

pub fn note_client_refresh(&mut self)[src]

Trait Implementations

impl Debug for MemoryCachedState[src]

impl Default for MemoryCachedState[src]

Auto Trait Implementations

impl !RefUnwindSafe for MemoryCachedState

impl Send for MemoryCachedState

impl !Sync for MemoryCachedState

impl Unpin for MemoryCachedState

impl !UnwindSafe for MemoryCachedState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,