Enum carapax::ChainResult
source · pub enum ChainResult {
Done(HandlerResult),
Err(HandlerError),
Skipped,
}
Expand description
A specialized result for the Chain
handler.
Variants§
Done(HandlerResult)
A handler has been successfully executed.
Err(HandlerError)
An error has occurred before handler execution.
Skipped
A handler has not been execute.
Trait Implementations§
source§impl From<()> for ChainResult
impl From<()> for ChainResult
source§impl From<PredicateOutput> for ChainResult
impl From<PredicateOutput> for ChainResult
source§fn from(output: PredicateOutput) -> Self
fn from(output: PredicateOutput) -> Self
Converts to this type from the input type.
source§impl IntoHandlerResult for ChainResult
impl IntoHandlerResult for ChainResult
source§fn into_result(self) -> HandlerResult
fn into_result(self) -> HandlerResult
Returns the converted object.
Auto Trait Implementations§
impl Freeze for ChainResult
impl !RefUnwindSafe for ChainResult
impl Send for ChainResult
impl !Sync for ChainResult
impl Unpin for ChainResult
impl !UnwindSafe for ChainResult
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more