pub enum MessageDisposition {
Ack,
Reply(CanonicalMessage),
Nack,
}Expand description
The disposition of a processed message.
Implements From<Option<CanonicalMessage>> for compatibility:
None maps to Ack, Some(msg) maps to Reply(msg).
Variants§
Ack
Acknowledge processing (success).
Reply(CanonicalMessage)
Acknowledge processing and send a reply.
Nack
Negative acknowledgement (failure).
Trait Implementations§
Source§impl Clone for MessageDisposition
impl Clone for MessageDisposition
Source§fn clone(&self) -> MessageDisposition
fn clone(&self) -> MessageDisposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageDisposition
impl Debug for MessageDisposition
Source§impl Default for MessageDisposition
impl Default for MessageDisposition
Source§fn default() -> MessageDisposition
fn default() -> MessageDisposition
Returns the “default value” for a type. Read more
Source§impl From<Handled> for MessageDisposition
impl From<Handled> for MessageDisposition
Source§impl From<Option<CanonicalMessage>> for MessageDisposition
impl From<Option<CanonicalMessage>> for MessageDisposition
Source§fn from(opt: Option<CanonicalMessage>) -> Self
fn from(opt: Option<CanonicalMessage>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for MessageDisposition
impl RefUnwindSafe for MessageDisposition
impl Send for MessageDisposition
impl Sync for MessageDisposition
impl Unpin for MessageDisposition
impl UnsafeUnpin for MessageDisposition
impl UnwindSafe for MessageDisposition
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