Trait embedded_svc::storage::DynStorage

source ·
pub trait DynStorage<'a>: StorageBase {
    // Required methods
    fn get(&self, name: &str) -> Result<Option<&'a dyn Any>, Self::Error>;
    fn set(
        &mut self,
        name: &'a str,
        value: &'a dyn Any,
    ) -> Result<bool, Self::Error>;
}

Required Methods§

source

fn get(&self, name: &str) -> Result<Option<&'a dyn Any>, Self::Error>

source

fn set( &mut self, name: &'a str, value: &'a dyn Any, ) -> Result<bool, Self::Error>

Implementations on Foreign Types§

source§

impl<'a, D> DynStorage<'a> for &'a mut D
where D: DynStorage<'a>,

source§

fn get(&self, name: &str) -> Result<Option<&'a dyn Any>, Self::Error>

source§

fn set( &mut self, name: &'a str, value: &'a dyn Any, ) -> Result<bool, Self::Error>

Implementors§

source§

impl<'a, const N: usize> DynStorage<'a> for DynStorageImpl<'a, N>