[][src]Struct sync_test::sync15::TestStore

pub struct TestStore {
    pub name: &'static str,
    pub test_records: RefCell<Vec<TestRecord>>,
    pub store_sync_assoc: RefCell<StoreSyncAssociation>,
    pub was_reset_called: Cell<bool>,
    pub global_id: Option<Guid>,
    pub coll_id: Option<Guid>,
}

Fields

name: &'static strtest_records: RefCell<Vec<TestRecord>>store_sync_assoc: RefCell<StoreSyncAssociation>was_reset_called: Cell<bool>global_id: Option<Guid>coll_id: Option<Guid>

Trait Implementations

impl Store for TestStore[src]

fn get_sync_assoc(&self) -> Result<StoreSyncAssociation>[src]

This is where we return our test collection's sync ID (and global sync ID).

fn reset(&self, assoc: &StoreSyncAssociation) -> Result<()>[src]

Reset the store without wiping local data, ready for a "first sync". assoc defines how this store is to be associated with sync.

Auto Trait Implementations

impl !RefUnwindSafe for TestStore

impl Send for TestStore

impl !Sync for TestStore

impl Unpin for TestStore

impl UnwindSafe for TestStore

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> Instrument for T[src]

impl<T> Instrument 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>,