#[non_exhaustive]pub struct UndeliveredMessage {
pub stream_identifier: u16,
pub stream_sequence_number: u16,
pub payload_type: PayloadProtocolIdentifier,
pub unordered: bool,
pub mode: UndeliveredMode,
pub partial: bool,
pub data: Bytes,
}Expand description
A user message an association did not deliver, handed back by
Association::take_undelivered_messages
once the association ended.
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.stream_identifier: u16The stream the message was written to.
stream_sequence_number: u16The Stream Sequence Number the message had (0 when it was never numbered).
payload_type: PayloadProtocolIdentifierThe Payload Protocol Identifier it was written with.
unordered: boolIt was written unordered.
mode: UndeliveredModeUnsent, or sent and not acknowledged.
partial: booldata is not the whole message: the peer acknowledged some of it, or some of it was
sent before (RFC 9260 11.1.14 / 11.1.15 “partial flag”).
data: BytesThe bytes of the message that were not acknowledged, in order.
Trait Implementations§
Source§impl Clone for UndeliveredMessage
impl Clone for UndeliveredMessage
Source§impl Debug for UndeliveredMessage
impl Debug for UndeliveredMessage
Source§impl PartialEq for UndeliveredMessage
impl PartialEq for UndeliveredMessage
impl StructuralPartialEq for UndeliveredMessage
Auto Trait Implementations§
impl !Freeze for UndeliveredMessage
impl Forget for UndeliveredMessage
impl Move for UndeliveredMessage
impl RefUnwindSafe for UndeliveredMessage
impl Send for UndeliveredMessage
impl Sync for UndeliveredMessage
impl Unpin for UndeliveredMessage
impl UnsafeUnpin for UndeliveredMessage
impl UnwindSafe for UndeliveredMessage
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