pub enum CorrelatorError<K, V, Route> {
AlreadyPending {
key: K,
reply_to: Route,
},
ReopenCompleted {
key: K,
reply_to: Route,
},
ReopenCancelled {
key: K,
reply_to: Route,
},
AlreadyCompleted(K),
AlreadyCancelled(K),
Unknown(K),
UnknownReply {
key: K,
value: V,
},
StaleCompleted {
key: K,
value: V,
},
StaleCancelled {
key: K,
value: V,
},
}Expand description
A rejected correlation transition.
Variants§
AlreadyPending
The key is already pending.
ReopenCompleted
A completed key cannot be opened again without an explicit retention policy.
ReopenCancelled
A cancelled key cannot be opened again without an explicit retention policy.
AlreadyCompleted(K)
An operation targeted an already completed lifecycle.
AlreadyCancelled(K)
An operation targeted an already cancelled lifecycle.
Unknown(K)
No lifecycle fact exists for the supplied key.
UnknownReply
No lifecycle fact exists for a reply; the owned value is returned.
StaleCompleted
A reply arrived after successful completion; the owned value is returned.
StaleCancelled
A reply arrived after cancellation; the owned value is returned.
Trait Implementations§
Source§impl<K: Clone, V: Clone, Route: Clone> Clone for CorrelatorError<K, V, Route>
impl<K: Clone, V: Clone, Route: Clone> Clone for CorrelatorError<K, V, Route>
Source§fn clone(&self) -> CorrelatorError<K, V, Route>
fn clone(&self) -> CorrelatorError<K, V, Route>
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 moreSource§impl<K, V, Route> Display for CorrelatorError<K, V, Route>
impl<K, V, Route> Display for CorrelatorError<K, V, Route>
Source§impl<K, V, Route> Error for CorrelatorError<K, V, Route>
impl<K, V, Route> Error for CorrelatorError<K, V, Route>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<K: PartialEq, V: PartialEq, Route: PartialEq> PartialEq for CorrelatorError<K, V, Route>
impl<K: PartialEq, V: PartialEq, Route: PartialEq> PartialEq for CorrelatorError<K, V, Route>
Source§fn eq(&self, other: &CorrelatorError<K, V, Route>) -> bool
fn eq(&self, other: &CorrelatorError<K, V, Route>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<K: Eq, V: Eq, Route: Eq> Eq for CorrelatorError<K, V, Route>
impl<K, V, Route> StructuralPartialEq for CorrelatorError<K, V, Route>
Auto Trait Implementations§
impl<K, V, Route> Freeze for CorrelatorError<K, V, Route>
impl<K, V, Route> RefUnwindSafe for CorrelatorError<K, V, Route>
impl<K, V, Route> Send for CorrelatorError<K, V, Route>
impl<K, V, Route> Sync for CorrelatorError<K, V, Route>
impl<K, V, Route> Unpin for CorrelatorError<K, V, Route>
impl<K, V, Route> UnsafeUnpin for CorrelatorError<K, V, Route>
impl<K, V, Route> UnwindSafe for CorrelatorError<K, V, Route>
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