pub struct ChannelView<F, M>where
F: MultiwriteNorFlash + 'static,
M: RawMutex + 'static,{ /* private fields */ }Expand description
View implementing [umsh_hal::ChannelStore] on top of a shared
FlashStore.
Implementations§
Source§impl<F, M> ChannelView<F, M>where
F: MultiwriteNorFlash + 'static,
M: RawMutex + 'static,
impl<F, M> ChannelView<F, M>where
F: MultiwriteNorFlash + 'static,
M: RawMutex + 'static,
Sourcepub fn new(storage: &'static FlashStore<F, M>) -> Self
pub fn new(storage: &'static FlashStore<F, M>) -> Self
Construct a channel-store view over the shared static storage.
Trait Implementations§
Source§impl<F, M> ChannelStore for ChannelView<F, M>where
F: MultiwriteNorFlash + 'static,
M: RawMutex + 'static,
impl<F, M> ChannelStore for ChannelView<F, M>where
F: MultiwriteNorFlash + 'static,
M: RawMutex + 'static,
type Error = Error<<F as ErrorType>::Error>
Source§async fn store_channel(
&self,
name: &[u8],
key: &[u8; 32],
) -> Result<(), Self::Error>
async fn store_channel( &self, name: &[u8], key: &[u8; 32], ) -> Result<(), Self::Error>
Upsert the channel record for
name.