RemoteConfigStore

Trait RemoteConfigStore 

Source
pub trait RemoteConfigStore {
    // Required methods
    fn get(&self, remote_id: u64) -> Option<&RemoteEntityConfig>;
    fn get_mut(&mut self, remote_id: u64) -> Option<&mut RemoteEntityConfig>;
    fn add_config(
        &mut self,
        cfg: &RemoteEntityConfig,
    ) -> Result<bool, RemoteConfigStoreError>;
}

Required Methods§

Source

fn get(&self, remote_id: u64) -> Option<&RemoteEntityConfig>

Retrieve the remote entity configuration for the given remote ID.

Source

fn get_mut(&mut self, remote_id: u64) -> Option<&mut RemoteEntityConfig>

Source

fn add_config( &mut self, cfg: &RemoteEntityConfig, ) -> Result<bool, RemoteConfigStoreError>

Add a new remote configuration. Return true if the configuration was inserted successfully, and false if a configuration already exists.

Implementors§

Source§

impl RemoteConfigStore for RemoteConfigList

Available on crate feature alloc only.
Source§

impl RemoteConfigStore for RemoteConfigStoreStd

Available on crate feature std only.
Source§

impl RemoteConfigStore for RemoteEntityConfig

A remote entity configurations also implements the RemoteConfigStore, but the RemoteConfigStore::add_config always returns RemoteConfigStoreError::Full.

Source§

impl<const N: usize> RemoteConfigStore for RemoteConfigListHeapless<N>