#[non_exhaustive]pub enum ActionOutcome {
Replied {
body: String,
},
NoChannel,
Skipped,
TimedOut,
}Expand description
What happened when the daemon tried to deliver one sheep’s triggered action.
#[non_exhaustive]: a future outcome — distinguishing a malformed reply
from a well-formed one, say, or a second trigger already in flight for
the same sheep — must not need a protocol version bump (IR-20).
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.
Replied
The app answered on the shepherd channel.
NoChannel
The sheep had no reachable shepherd channel for the daemon to deliver the action over.
Skipped
The sheep is a reload drainee — mid-swap, on its way out — and the daemon skipped it rather than deliver the action to a process already being replaced.
TimedOut
The daemon delivered the action, but no reply arrived before the app’s configured action timeout elapsed.
Trait Implementations§
Source§impl Clone for ActionOutcome
impl Clone for ActionOutcome
Source§fn clone(&self) -> ActionOutcome
fn clone(&self) -> ActionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionOutcome
impl Debug for ActionOutcome
Source§impl<'de> Deserialize<'de> for ActionOutcome
impl<'de> Deserialize<'de> for ActionOutcome
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
impl Eq for ActionOutcome
Source§impl PartialEq for ActionOutcome
impl PartialEq for ActionOutcome
Source§impl Serialize for ActionOutcome
impl Serialize for ActionOutcome
impl StructuralPartialEq for ActionOutcome
Auto Trait Implementations§
impl Freeze for ActionOutcome
impl RefUnwindSafe for ActionOutcome
impl Send for ActionOutcome
impl Sync for ActionOutcome
impl Unpin for ActionOutcome
impl UnsafeUnpin for ActionOutcome
impl UnwindSafe for ActionOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.