pub struct NoPeerStore;Expand description
No-op peer store — use when peer persistence is not needed.
Trait Implementations§
Source§impl PeerStore for NoPeerStore
impl PeerStore for NoPeerStore
type Error = Infallible
Source§async fn store_peer(
&self,
_: &[u8; 32],
_: Option<&[u8]>,
) -> Result<(), Self::Error>
async fn store_peer( &self, _: &[u8; 32], _: Option<&[u8]>, ) -> Result<(), Self::Error>
Upsert the peer record for
key. alias, if present, is a UTF-8
display label; passing None removes any existing alias.