pub enum Handled<T> {
Yes,
No {
message: T,
retry: bool,
},
}Expand description
Return type from JrHandler; indicates whether the request was handled or not.
Variants§
Yes
The message was handled
No
The message was not handled; returns the original value.
If retry is true,
Fields
§
message: TThe message to be passed to subsequent handlers (typically the original message, but it may have been mutated.)
§
retry: boolIf true, request the message to be queued and retried with dynamic handlers as they are added.
This is used for managing session updates since the dynamic handler for a session cannot be added until the response to the new session request has been processed and there may be updates that get processed at the same time.
Trait Implementations§
Source§impl<T> IntoHandled<T> for Handled<T>
impl<T> IntoHandled<T> for Handled<T>
Source§fn into_handled(self) -> Handled<T>
fn into_handled(self) -> Handled<T>
Convert this value into a
Handled<T>.Auto Trait Implementations§
impl<T> Freeze for Handled<T>where
T: Freeze,
impl<T> RefUnwindSafe for Handled<T>where
T: RefUnwindSafe,
impl<T> Send for Handled<T>where
T: Send,
impl<T> Sync for Handled<T>where
T: Sync,
impl<T> Unpin for Handled<T>where
T: Unpin,
impl<T> UnsafeUnpin for Handled<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Handled<T>where
T: UnwindSafe,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.