pub struct MessagePart {
pub chunks: Chunks,
pub unordered: bool,
pub first: bool,
pub end_of_record: bool,
}Expand description
Part of a message, read with Stream::read_part: the partial
delivery API of RFC 9260 section 6.9 (the RECEIVE primitive’s “partial flag”, section
11.1.7; MSG_EOR of RFC 6458 section 3.1.4).
A message that is complete when it is read is one part with end_of_record set. One the
receive buffer cannot hold whole is read in several, in order: the first with first
set, the last with end_of_record set, all of them from the same stream with no part of
another message of that stream between them (RFC 6458 section 3.1.4: “Only one message at
a time can be partially delivered in any stream”). If the sender abandons the message
before its last part (RFC 3758, RFC 8260 section 2.3.1), no part with end_of_record
follows: StreamEvent::PartialDeliveryAborted
says so instead.
Fields§
§chunks: ChunksThe bytes of this part, as the fragments that carried them. Its ssn, mid, ppi and
ppid are the message’s.
unordered: boolThe message was sent unordered.
first: boolThis part starts the message.
end_of_record: boolThis part ends the message (“no more deliveries will be received for this stream
sequence number”, RFC 9260 section 11.1.7; RFC 6458 MSG_EOR).