[−][src]Struct sync_test::sync15::TestStore
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 collection_name(&self) -> Cow<'static, str>[src]
fn apply_incoming(
&self,
inbound: Vec<IncomingChangeset>,
_telem: &mut Engine
) -> Result<OutgoingChangeset>[src]
&self,
inbound: Vec<IncomingChangeset>,
_telem: &mut Engine
) -> Result<OutgoingChangeset>
fn sync_finished(
&self,
_new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>[src]
&self,
_new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>
fn get_collection_requests(
&self,
_server_timestamp: ServerTimestamp
) -> Result<Vec<CollectionRequest>>[src]
&self,
_server_timestamp: ServerTimestamp
) -> Result<Vec<CollectionRequest>>
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.
fn wipe(&self) -> Result<()>[src]
fn prepare_for_sync(&self, _get_client_data: &dyn Fn()) -> Result<(), Error>[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,