pub struct Stores<D>(/* private fields */);Expand description
Holds all node stores.
Implementations§
Source§impl<D> Stores<D>where
D: Store,
impl<D> Stores<D>where
D: Store,
Sourcepub fn routing_mut(&mut self) -> &mut impl Store
pub fn routing_mut(&mut self) -> &mut impl Store
Get the database as a routing store, mutably.
Sourcepub fn addresses_mut(&mut self) -> &mut impl Store
pub fn addresses_mut(&mut self) -> &mut impl Store
Get the database as an address store, mutably.
Sourcepub fn gossip_mut(&mut self) -> &mut impl Store
pub fn gossip_mut(&mut self) -> &mut impl Store
Get the database as a gossip store, mutably.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Stores<D>where
D: Freeze,
impl<D> RefUnwindSafe for Stores<D>where
D: RefUnwindSafe,
impl<D> Send for Stores<D>where
D: Send,
impl<D> Sync for Stores<D>where
D: Sync,
impl<D> Unpin for Stores<D>where
D: Unpin,
impl<D> UnwindSafe for Stores<D>where
D: UnwindSafe,
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> 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