[−][src]Struct tabs::sync::store::TabsStore
Fields
storage: &'a TabsStorage
remote_clients: RefCell<HashMap<String, RemoteClient>>
last_sync: Cell<Option<ServerTimestamp>>
sync_store_assoc: RefCell<StoreSyncAssociation>
local_id: RefCell<String>
Implementations
impl<'a> TabsStore<'a>
[src]
pub fn new(storage: &'a TabsStorage) -> Self
[src]
Trait Implementations
impl<'a> Store for TabsStore<'a>
[src]
fn collection_name(&self) -> Cow<'static, str>
[src]
fn prepare_for_sync(
&self,
get_client_data: &dyn Fn() -> ClientData
) -> Result<()>
[src]
&self,
get_client_data: &dyn Fn() -> ClientData
) -> Result<()>
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]
fn reset(&self, assoc: &StoreSyncAssociation) -> Result<()>
[src]
fn wipe(&self) -> Result<()>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TabsStore<'a>
impl<'a> !Send for TabsStore<'a>
impl<'a> !Sync for TabsStore<'a>
impl<'a> Unpin for TabsStore<'a>
impl<'a> !UnwindSafe for TabsStore<'a>
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, 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>,