Trait embedded_svc::storage::RawStorage

source ·
pub trait RawStorage: StorageBase {
    // Required methods
    fn len(&self, name: &str) -> Result<Option<usize>, Self::Error>;
    fn get_raw<'a>(
        &self,
        name: &str,
        buf: &'a mut [u8],
    ) -> Result<Option<&'a [u8]>, Self::Error>;
    fn set_raw(&mut self, name: &str, buf: &[u8]) -> Result<bool, Self::Error>;
}

Required Methods§

source

fn len(&self, name: &str) -> Result<Option<usize>, Self::Error>

source

fn get_raw<'a>( &self, name: &str, buf: &'a mut [u8], ) -> Result<Option<&'a [u8]>, Self::Error>

source

fn set_raw(&mut self, name: &str, buf: &[u8]) -> Result<bool, Self::Error>

Implementations on Foreign Types§

source§

impl<R> RawStorage for &mut R
where R: RawStorage,

source§

fn len(&self, name: &str) -> Result<Option<usize>, Self::Error>

source§

fn get_raw<'a>( &self, name: &str, buf: &'a mut [u8], ) -> Result<Option<&'a [u8]>, Self::Error>

source§

fn set_raw(&mut self, name: &str, buf: &[u8]) -> Result<bool, Self::Error>

Implementors§