Struct remoc_obs::hashmap::MirroredHashMap
source · [−]pub struct MirroredHashMap<K, V, Codec = Default> { /* private fields */ }Expand description
A hash map that is mirroring an observable hash map.
Implementations
impl<K, V, Codec> MirroredHashMap<K, V, Codec> where
K: RemoteSend + Clone,
V: RemoteSend + Clone,
Codec: Codec,
impl<K, V, Codec> MirroredHashMap<K, V, Codec> where
K: RemoteSend + Clone,
V: RemoteSend + Clone,
Codec: Codec,
Returns a reference to the current value of the hash map.
Updates are paused while the read lock is held.
This method returns an error if the observed hash map has been dropped or the connection to it failed. In this case the mirrored contents at the point of loss of connection can be obtained using detach.
Returns a reference to the current value of the hash map and marks it as seen.
Thus changed will not return immediately until the value changes after this method returns.
Updates are paused while the read lock is held.
This method returns an error if the observed hash map has been dropped or the connection to it failed. In this case the mirrored contents at the point of loss of connection can be obtained using detach.
Stops updating the hash map and returns its current contents.
Waits for a change and marks the newest value as seen.
This also returns when connection to the observed hash map has been lost.
Trait Implementations
Auto Trait Implementations
impl<K, V, Codec = Default> !RefUnwindSafe for MirroredHashMap<K, V, Codec>
impl<K, V, Codec> Send for MirroredHashMap<K, V, Codec> where
Codec: Send,
K: Send + Sync,
V: Send + Sync,
impl<K, V, Codec> Sync for MirroredHashMap<K, V, Codec> where
Codec: Send,
K: Send + Sync,
V: Send + Sync,
impl<K, V, Codec> Unpin for MirroredHashMap<K, V, Codec>
impl<K, V, Codec = Default> !UnwindSafe for MirroredHashMap<K, V, Codec>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more