#[non_exhaustive]pub struct MessageOutcome {
pub sequence: Option<String>,
pub progressive: Option<u64>,
pub result: MessageResult,
}Expand description
The report of one message’s fate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sequence: Option<String>The sequence the message was sent in, or None when it was sent in
none.
progressive: Option<u64>The progressive that identifies the message, or None for a
fire-and-forget one — which can only ever be reported as
MessageResult::NotSent or MessageResult::Refused.
result: MessageResultWhat became of it.
Implementations§
Source§impl MessageOutcome
impl MessageOutcome
Sourcepub const fn is_delivered(&self) -> bool
pub const fn is_delivered(&self) -> bool
Whether the Metadata Adapter processed the message.
Trait Implementations§
Source§impl Clone for MessageOutcome
impl Clone for MessageOutcome
Source§fn clone(&self) -> MessageOutcome
fn clone(&self) -> MessageOutcome
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 MessageOutcome
impl Debug for MessageOutcome
impl Eq for MessageOutcome
Source§impl PartialEq for MessageOutcome
impl PartialEq for MessageOutcome
impl StructuralPartialEq for MessageOutcome
Auto Trait Implementations§
impl Freeze for MessageOutcome
impl RefUnwindSafe for MessageOutcome
impl Send for MessageOutcome
impl Sync for MessageOutcome
impl Unpin for MessageOutcome
impl UnsafeUnpin for MessageOutcome
impl UnwindSafe for MessageOutcome
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