pub enum HandlerAction {
Continue,
Return(String),
Abort(String),
Respond(String),
}Expand description
Action to take after a pattern handler executes.
Variants§
Continue
Continue with the expect operation.
Return(String)
Stop the expect operation and return success with this match.
Abort(String)
Stop the expect operation and return an error.
Respond(String)
Send a response and continue.
Trait Implementations§
Source§impl Clone for HandlerAction
impl Clone for HandlerAction
Source§fn clone(&self) -> HandlerAction
fn clone(&self) -> HandlerAction
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 HandlerAction
impl Debug for HandlerAction
Source§impl Default for HandlerAction
impl Default for HandlerAction
Source§fn default() -> HandlerAction
fn default() -> HandlerAction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HandlerAction
impl RefUnwindSafe for HandlerAction
impl Send for HandlerAction
impl Sync for HandlerAction
impl Unpin for HandlerAction
impl UnwindSafe for HandlerAction
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