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