pub enum HandlerResult {
Success,
Error(u8),
}Expand description
Result type for handler functions that can be tested.
Variants§
Trait Implementations§
Source§impl Clone for HandlerResult
impl Clone for HandlerResult
Source§fn clone(&self) -> HandlerResult
fn clone(&self) -> HandlerResult
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 Debug for HandlerResult
impl Debug for HandlerResult
Source§impl From<HandlerResult> for ExitCode
impl From<HandlerResult> for ExitCode
Source§fn from(result: HandlerResult) -> Self
fn from(result: HandlerResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HandlerResult
impl PartialEq for HandlerResult
impl StructuralPartialEq for HandlerResult
Auto Trait Implementations§
impl Freeze for HandlerResult
impl RefUnwindSafe for HandlerResult
impl Send for HandlerResult
impl Sync for HandlerResult
impl Unpin for HandlerResult
impl UnwindSafe for HandlerResult
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