pub enum Handled {
Ack,
Publish(CanonicalMessage),
}Expand description
The outcome of a successful command handling operation.
Variants§
Ack
The command was handled successfully. No further message should be sent. This is equivalent to acknowledging the message.
Publish(CanonicalMessage)
The command was handled successfully and produced a response to be published.
Trait Implementations§
impl ErgonomicResponse for Handled
Source§impl From<Handled> for MessageDisposition
impl From<Handled> for MessageDisposition
Source§impl IntoHandled for Handled
impl IntoHandled for Handled
fn into_handled(self) -> Handled
Source§impl IntoHandlerResult for Handled
impl IntoHandlerResult for Handled
fn into_handler_result(self) -> Result<Handled, HandlerError>
Auto Trait Implementations§
impl !Freeze for Handled
impl RefUnwindSafe for Handled
impl Send for Handled
impl Sync for Handled
impl Unpin for Handled
impl UnsafeUnpin for Handled
impl UnwindSafe for Handled
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