Struct embedded_svc::storage::DynStorageImpl

source ·
pub struct DynStorageImpl<'a, const N: usize>(/* private fields */);

Implementations§

source§

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

source

pub fn contains(&self, name: &str) -> Result<bool, NoSpaceError>

source

pub fn remove(&mut self, name: &str) -> Result<bool, NoSpaceError>

source

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

source

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

Trait Implementations§

source§

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

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>

source§

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

§

type Error = NoSpaceError

source§

fn contains(&self, name: &str) -> Result<bool, Self::Error>

source§

fn remove(&mut self, name: &str) -> Result<bool, Self::Error>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.