Enum carapax::PredicateResult
source · pub enum PredicateResult {
True,
False,
Err(HandlerError),
}
Expand description
Represents a result of a predicate.
Variants§
True
A decorated handler will be executed.
False
A decorated handler was not executed.
Err(HandlerError)
An error occurred during the predicate execution.
Trait Implementations§
source§impl Debug for PredicateResult
impl Debug for PredicateResult
source§impl From<PredicateResult> for PredicateOutput
impl From<PredicateResult> for PredicateOutput
source§fn from(result: PredicateResult) -> Self
fn from(result: PredicateResult) -> Self
Converts to this type from the input type.
source§impl<T, E> From<Result<T, E>> for PredicateResult
impl<T, E> From<Result<T, E>> for PredicateResult
Auto Trait Implementations§
impl Freeze for PredicateResult
impl !RefUnwindSafe for PredicateResult
impl Send for PredicateResult
impl !Sync for PredicateResult
impl Unpin for PredicateResult
impl !UnwindSafe for PredicateResult
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