pub struct RemoteConfigStoreStd(pub HashMap<u64, RemoteEntityConfig>);
Available on crate feature
alloc
only.Expand description
This is a thin wrapper around a hashbrown::HashMap to store remote entity configurations. It implements the full RemoteEntityConfig trait.
Tuple Fields§
§0: HashMap<u64, RemoteEntityConfig>
Implementations§
Source§impl RemoteConfigStoreStd
impl RemoteConfigStoreStd
pub fn remove_config(&mut self, remote_id: u64) -> bool
Available on crate feature
std
only.Trait Implementations§
Source§impl Debug for RemoteConfigStoreStd
impl Debug for RemoteConfigStoreStd
Source§impl Default for RemoteConfigStoreStd
impl Default for RemoteConfigStoreStd
Source§fn default() -> RemoteConfigStoreStd
fn default() -> RemoteConfigStoreStd
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoteConfigStoreStd
impl<'de> Deserialize<'de> for RemoteConfigStoreStd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RemoteConfigStore for RemoteConfigStoreStd
Available on crate feature std
only.
impl RemoteConfigStore for RemoteConfigStoreStd
Available on crate feature
std
only.Source§fn 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>
Source§fn add_config(
&mut self,
cfg: &RemoteEntityConfig,
) -> Result<bool, RemoteConfigStoreError>
fn add_config( &mut self, cfg: &RemoteEntityConfig, ) -> Result<bool, RemoteConfigStoreError>
Auto Trait Implementations§
impl Freeze for RemoteConfigStoreStd
impl RefUnwindSafe for RemoteConfigStoreStd
impl Send for RemoteConfigStoreStd
impl Sync for RemoteConfigStoreStd
impl Unpin for RemoteConfigStoreStd
impl UnwindSafe for RemoteConfigStoreStd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more