#[non_exhaustive]pub enum Dispatched {
Completed {
remote_ref: Option<String>,
},
Retryable {
code: String,
},
Permanent {
code: String,
},
Unknown {
remote_ref: Option<String>,
},
}Expand description
How one send ended, as the sender classifies it.
There is no Result around it on purpose. Every failure mode of an external
call has to land in exactly one of these four, and an author who returns an
error instead of choosing has not answered the only question that matters:
may this be sent again?
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The remote system accepted it, and said so.
Retryable
It did not arrive, and sending it again is safe.
Permanent
The remote refused it, and would refuse it again.
Unknown
The request left and no answer came back. The effect may exist (I15).
Implementations§
Trait Implementations§
Source§impl Clone for Dispatched
impl Clone for Dispatched
Source§impl Debug for Dispatched
impl Debug for Dispatched
impl Eq for Dispatched
Source§impl PartialEq for Dispatched
impl PartialEq for Dispatched
impl StructuralPartialEq for Dispatched
Auto Trait Implementations§
impl Freeze for Dispatched
impl RefUnwindSafe for Dispatched
impl Send for Dispatched
impl Sync for Dispatched
impl Unpin for Dispatched
impl UnsafeUnpin for Dispatched
impl UnwindSafe for Dispatched
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.