Struct NoChannelStore
pub struct NoChannelStore;Expand description
No-op channel store — use when channel persistence is not needed.
Trait Implementations§
§impl ChannelStore for NoChannelStore
impl ChannelStore for NoChannelStore
type Error = Infallible
§async fn store_channel(
&self,
_: &[u8],
_: &[u8; 32],
) -> Result<(), <NoChannelStore as ChannelStore>::Error>
async fn store_channel( &self, _: &[u8], _: &[u8; 32], ) -> Result<(), <NoChannelStore as ChannelStore>::Error>
Upsert the channel record for
name.§async fn delete_channel(
&self,
_: &[u8],
) -> Result<(), <NoChannelStore as ChannelStore>::Error>
async fn delete_channel( &self, _: &[u8], ) -> Result<(), <NoChannelStore as ChannelStore>::Error>
Remove the channel record for
name. A no-op if not present.§async fn for_each_channel(
&self,
_: &mut dyn FnMut(&[u8], &[u8; 32]),
) -> Result<(), <NoChannelStore as ChannelStore>::Error>
async fn for_each_channel( &self, _: &mut dyn FnMut(&[u8], &[u8; 32]), ) -> Result<(), <NoChannelStore as ChannelStore>::Error>
Invoke
f for every persisted channel record. Read more