pub struct ProtocolHeader {
pub initiator: bool,
pub acknowledged_counter: Option<u32>,
pub reliability: bool,
pub exchange_id: ExchangeId,
pub protocol: ProtocolId,
pub opcode: u8,
}Expand description
The header at the start of a message’s payload (§4.4.3).
Fields§
§initiator: boolWhether this message came from the exchange’s initiator.
acknowledged_counter: Option<u32>The counter this message acknowledges, when it acknowledges one (§4.12.1).
reliability: boolWhether the sender wants an acknowledgement — the MRP R flag.
exchange_id: ExchangeIdWhich conversation this message belongs to.
protocol: ProtocolIdWhich protocol, and whose.
opcode: u8What kind of message, within that protocol.
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolHeader
impl Clone for ProtocolHeader
impl Copy for ProtocolHeader
Source§impl Debug for ProtocolHeader
impl Debug for ProtocolHeader
Source§impl Default for ProtocolHeader
impl Default for ProtocolHeader
impl Eq for ProtocolHeader
Source§impl PartialEq for ProtocolHeader
impl PartialEq for ProtocolHeader
impl StructuralPartialEq for ProtocolHeader
Auto Trait Implementations§
impl Forget for ProtocolHeader
impl Freeze for ProtocolHeader
impl Move for ProtocolHeader
impl RefUnwindSafe for ProtocolHeader
impl Send for ProtocolHeader
impl Sync for ProtocolHeader
impl Unpin for ProtocolHeader
impl UnsafeUnpin for ProtocolHeader
impl UnwindSafe for ProtocolHeader
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