pub struct MixedStore<E: MixedStoreError, const WRITE_TO_ALL: bool> { /* private fields */ }Implementations§
Source§impl<E: MixedStoreError, const WRITE_TO_ALL: bool> MixedStore<E, WRITE_TO_ALL>
impl<E: MixedStoreError, const WRITE_TO_ALL: bool> MixedStore<E, WRITE_TO_ALL>
Sourcepub fn new<S, A, IS, IA>(stores: IS, async_stores: IA) -> Selfwhere
S: Store<Error = E> + Send + Sync + 'static,
A: AsyncStore<Error = E>,
IS: IntoIterator<Item = S>,
IA: IntoIterator<Item = A>,
pub fn new<S, A, IS, IA>(stores: IS, async_stores: IA) -> Selfwhere
S: Store<Error = E> + Send + Sync + 'static,
A: AsyncStore<Error = E>,
IS: IntoIterator<Item = S>,
IA: IntoIterator<Item = A>,
Creates a MixedStore from a list of Stores.
pub fn push_sync<S>(&mut self, store: S)
pub fn push_async<A>(&mut self, store: A)where
A: AsyncStore<Error = E>,
pub fn extend_sync<S, I>(&mut self, iter: I)
pub fn extend_async<A, I>(&mut self, iter: I)where
A: AsyncStore<Error = E>,
I: IntoIterator<Item = A>,
pub fn write_to_all(self) -> MixedStore<E, true>
pub fn write_to_one(self) -> MixedStore<E, false>
Trait Implementations§
Source§impl<E: MixedStoreError> AsyncStore for MixedStore<E, false>
impl<E: MixedStoreError> AsyncStore for MixedStore<E, false>
Source§impl<E: MixedStoreError> AsyncStore for MixedStore<E, true>
impl<E: MixedStoreError> AsyncStore for MixedStore<E, true>
Source§impl<E: Clone + MixedStoreError, const WRITE_TO_ALL: bool> Clone for MixedStore<E, WRITE_TO_ALL>
impl<E: Clone + MixedStoreError, const WRITE_TO_ALL: bool> Clone for MixedStore<E, WRITE_TO_ALL>
Source§fn clone(&self) -> MixedStore<E, WRITE_TO_ALL>
fn clone(&self) -> MixedStore<E, WRITE_TO_ALL>
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 moreSource§impl<E: Default + MixedStoreError, const WRITE_TO_ALL: bool> Default for MixedStore<E, WRITE_TO_ALL>
impl<E: Default + MixedStoreError, const WRITE_TO_ALL: bool> Default for MixedStore<E, WRITE_TO_ALL>
Source§fn default() -> MixedStore<E, WRITE_TO_ALL>
fn default() -> MixedStore<E, WRITE_TO_ALL>
Returns the “default value” for a type. Read more
Source§impl<E: MixedStoreError, const WRITE_TO_ALL: bool> Deref for MixedStore<E, WRITE_TO_ALL>
impl<E: MixedStoreError, const WRITE_TO_ALL: bool> Deref for MixedStore<E, WRITE_TO_ALL>
Source§impl<E: MixedStoreError> Store for MixedStore<E, false>
impl<E: MixedStoreError> Store for MixedStore<E, false>
Source§impl<E: MixedStoreError> Store for MixedStore<E, true>
impl<E: MixedStoreError> Store for MixedStore<E, true>
Auto Trait Implementations§
impl<E, const WRITE_TO_ALL: bool> Freeze for MixedStore<E, WRITE_TO_ALL>
impl<E, const WRITE_TO_ALL: bool> !RefUnwindSafe for MixedStore<E, WRITE_TO_ALL>
impl<E, const WRITE_TO_ALL: bool> Send for MixedStore<E, WRITE_TO_ALL>
impl<E, const WRITE_TO_ALL: bool> Sync for MixedStore<E, WRITE_TO_ALL>
impl<E, const WRITE_TO_ALL: bool> Unpin for MixedStore<E, WRITE_TO_ALL>
impl<E, const WRITE_TO_ALL: bool> !UnwindSafe for MixedStore<E, WRITE_TO_ALL>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> 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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.