[][src]Struct sync15::GlobalState

pub struct GlobalState {
    pub config: InfoConfiguration,
    pub collections: InfoCollections,
    pub global: MetaGlobalRecord,
    pub global_timestamp: ServerTimestamp,
    pub keys: EncryptedBso,
}

Holds global Sync state, including server upload limits, the last-fetched collection modified times, meta/global record, and encrypted copies of the crypto/keys resourse (which we hold as encrypted both to avoid keeping them in memory longer than necessary, and guard against the wrong (ie, a different user's) root key being passed in.

Fields

config: InfoConfigurationcollections: InfoCollectionsglobal: MetaGlobalRecordglobal_timestamp: ServerTimestampkeys: EncryptedBso

Trait Implementations

impl Clone for GlobalState[src]

impl Debug for GlobalState[src]

Auto Trait Implementations

impl RefUnwindSafe for GlobalState

impl Send for GlobalState

impl Sync for GlobalState

impl Unpin for GlobalState

impl UnwindSafe for GlobalState

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,