pub struct InMemoryPeerStore { /* private fields */ }Expand description
Default in-memory peer store.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryPeerStore
impl Debug for InMemoryPeerStore
Source§impl Default for InMemoryPeerStore
impl Default for InMemoryPeerStore
Source§fn default() -> InMemoryPeerStore
fn default() -> InMemoryPeerStore
Returns the “default value” for a type. Read more
Source§impl FederationPeerStore for InMemoryPeerStore
impl FederationPeerStore for InMemoryPeerStore
fn insert(&self, peer: FederationPeer) -> Result<(), PeerHandshakeError>
fn get( &self, kernel_id: &str, ) -> Result<Option<FederationPeer>, PeerHandshakeError>
fn remove( &self, kernel_id: &str, ) -> Result<Option<FederationPeer>, PeerHandshakeError>
fn snapshot(&self) -> Result<Vec<FederationPeer>, PeerHandshakeError>
Auto Trait Implementations§
impl !Freeze for InMemoryPeerStore
impl RefUnwindSafe for InMemoryPeerStore
impl Send for InMemoryPeerStore
impl Sync for InMemoryPeerStore
impl Unpin for InMemoryPeerStore
impl UnsafeUnpin for InMemoryPeerStore
impl UnwindSafe for InMemoryPeerStore
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