pub enum Received<'a> {
Message {
exchange: ExchangeKey,
header: ProtocolHeader,
needs_ack: bool,
payload: &'a [u8],
},
Duplicate {
exchange: ExchangeKey,
needs_ack: bool,
},
Acknowledged {
exchange: ExchangeKey,
},
}Available on crate feature
rustcrypto only.Expand description
What arrived, once the message has been authenticated and routed.
Variants§
Message
A protocol message for the layer above.
Fields
§
exchange: ExchangeKeyThe exchange it belongs to.
§
header: ProtocolHeaderThe protocol header it carried.
§
needs_ack: boolWhether an acknowledgement is owed, which Messaging::acknowledge sends.
Duplicate
An authenticated message this node has already seen (§4.12.2.2).
Not delivered upward. Still acknowledged, because the sender’s retransmission means its last acknowledgement was lost, not that its message was.
Fields
§
exchange: ExchangeKeyThe exchange it belongs to.
Acknowledged
A standalone acknowledgement, consumed entirely by the reliability layer.
Fields
§
exchange: ExchangeKeyThe exchange it acknowledged.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Received<'a>
impl<'a> RefUnwindSafe for Received<'a>
impl<'a> Send for Received<'a>
impl<'a> Sync for Received<'a>
impl<'a> Unpin for Received<'a>
impl<'a> UnsafeUnpin for Received<'a>
impl<'a> UnwindSafe for Received<'a>
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