pub struct SyncStores {
pub friends: Arc<dyn FriendsStore + Send + Sync>,
pub outbox: Arc<dyn OutboxStore + Send + Sync>,
pub history: Arc<dyn MessageStore + Send + Sync>,
pub seen: Arc<dyn SeenTracker + Send + Sync>,
pub known_mailboxes: Arc<dyn KnownMailboxesStore + Send + Sync>,
}Expand description
A collection of storage traits used by the SyncEngine.
Fields§
§friends: Arc<dyn FriendsStore + Send + Sync>The friends store.
outbox: Arc<dyn OutboxStore + Send + Sync>The outbox store.
history: Arc<dyn MessageStore + Send + Sync>The message history store.
seen: Arc<dyn SeenTracker + Send + Sync>The seen messages tracker.
known_mailboxes: Arc<dyn KnownMailboxesStore + Send + Sync>The known mailboxes store.
Implementations§
Source§impl SyncStores
impl SyncStores
Sourcepub fn new(
friends: Arc<dyn FriendsStore + Send + Sync>,
outbox: Arc<dyn OutboxStore + Send + Sync>,
history: Arc<dyn MessageStore + Send + Sync>,
seen: Arc<dyn SeenTracker + Send + Sync>,
known_mailboxes: Arc<dyn KnownMailboxesStore + Send + Sync>,
) -> Self
pub fn new( friends: Arc<dyn FriendsStore + Send + Sync>, outbox: Arc<dyn OutboxStore + Send + Sync>, history: Arc<dyn MessageStore + Send + Sync>, seen: Arc<dyn SeenTracker + Send + Sync>, known_mailboxes: Arc<dyn KnownMailboxesStore + Send + Sync>, ) -> Self
Creates a new SyncStores instance.
Trait Implementations§
Source§impl Clone for SyncStores
impl Clone for SyncStores
Source§fn clone(&self) -> SyncStores
fn clone(&self) -> SyncStores
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyncStores
impl !RefUnwindSafe for SyncStores
impl Send for SyncStores
impl Sync for SyncStores
impl Unpin for SyncStores
impl !UnwindSafe for SyncStores
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more