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§
Sourcefn get(&self, remote_id: u64) -> Option<&RemoteEntityConfig>
fn get(&self, remote_id: u64) -> Option<&RemoteEntityConfig>
Retrieve the remote entity configuration for the given remote ID.
fn get_mut(&mut self, remote_id: u64) -> Option<&mut RemoteEntityConfig>
Sourcefn add_config(
&mut self,
cfg: &RemoteEntityConfig,
) -> Result<bool, RemoteConfigStoreError>
fn add_config( &mut self, cfg: &RemoteEntityConfig, ) -> Result<bool, RemoteConfigStoreError>
Implementors§
impl RemoteConfigStore for RemoteConfigList
Available on crate feature
alloc
only.impl RemoteConfigStore for RemoteConfigStoreStd
Available on crate feature
std
only.impl RemoteConfigStore for RemoteEntityConfig
A remote entity configurations also implements the RemoteConfigStore, but the RemoteConfigStore::add_config always returns RemoteConfigStoreError::Full.