pub enum OverrideResult<In, Out> {
NoMatch(In),
Handled(Box<dyn SendData>),
Replaced(Out),
}Expand description
The result of an override.
This is used to determine what to do with an effect that has been passed to an override.
Variants§
NoMatch(In)
The effect was not handled and shall be passed to overrides installed later than this one.
Handled(Box<dyn SendData>)
The effect was handled and the message shall be delivered to the stage as the result.
Replaced(Out)
The effect was replaced by this new effect that will be run instead.
Auto Trait Implementations§
impl<In, Out> !RefUnwindSafe for OverrideResult<In, Out>
impl<In, Out> !Sync for OverrideResult<In, Out>
impl<In, Out> !UnwindSafe for OverrideResult<In, Out>
impl<In, Out> Freeze for OverrideResult<In, Out>
impl<In, Out> Send for OverrideResult<In, Out>
impl<In, Out> Unpin for OverrideResult<In, Out>
impl<In, Out> UnsafeUnpin for OverrideResult<In, Out>where
In: UnsafeUnpin,
Out: UnsafeUnpin,
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