Struct DispatchOutcome
pub struct DispatchOutcome {
pub status: DispatchStatus,
pub message: Option<String>,
}Fields§
§status: DispatchStatus§message: Option<String>Implementations§
§impl DispatchOutcome
impl DispatchOutcome
pub fn dispatched() -> DispatchOutcome
pub fn skipped(message: impl Into<String>) -> DispatchOutcome
pub fn failed(message: impl Into<String>) -> DispatchOutcome
pub const fn is_success(&self) -> bool
Trait Implementations§
§impl Clone for DispatchOutcome
impl Clone for DispatchOutcome
§fn clone(&self) -> DispatchOutcome
fn clone(&self) -> DispatchOutcome
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 more§impl Debug for DispatchOutcome
impl Debug for DispatchOutcome
§impl PartialEq for DispatchOutcome
impl PartialEq for DispatchOutcome
impl Eq for DispatchOutcome
impl StructuralPartialEq for DispatchOutcome
Auto Trait Implementations§
impl Freeze for DispatchOutcome
impl RefUnwindSafe for DispatchOutcome
impl Send for DispatchOutcome
impl Sync for DispatchOutcome
impl Unpin for DispatchOutcome
impl UnsafeUnpin for DispatchOutcome
impl UnwindSafe for DispatchOutcome
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