pub enum CorrelationResult<K, V> {
Resolved {
key: K,
value: V,
},
Cancelled {
key: K,
},
}Expand description
Result delivered to the reply recipient retained by Correlator.
Variants§
Resolved
A matching pending key accepted one value.
Cancelled
A matching pending key was explicitly cancelled.
Fields
§
key: KTrait Implementations§
Source§impl<K: Clone, V: Clone> Clone for CorrelationResult<K, V>
impl<K: Clone, V: Clone> Clone for CorrelationResult<K, V>
Source§fn clone(&self) -> CorrelationResult<K, V>
fn clone(&self) -> CorrelationResult<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<K: Eq, V: Eq> Eq for CorrelationResult<K, V>
impl<K, V> StructuralPartialEq for CorrelationResult<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for CorrelationResult<K, V>
impl<K, V> RefUnwindSafe for CorrelationResult<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for CorrelationResult<K, V>
impl<K, V> Sync for CorrelationResult<K, V>
impl<K, V> Unpin for CorrelationResult<K, V>
impl<K, V> UnsafeUnpin for CorrelationResult<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for CorrelationResult<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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