pub struct OutgoingContextual {
pub op_code: OpCode,
pub sequence: u16,
}Expand description
A contextual packet the channel wishes to send (without OP code or CRC framing, which the session layer applies). For this channel it is always an acknowledgement carrying a single sequence number.
Fields§
§op_code: OpCodeThe OP code of the packet (OpCode::Acknowledge or OpCode::AcknowledgeAll).
sequence: u16The acknowledged sequence number.
Trait Implementations§
Source§impl Clone for OutgoingContextual
impl Clone for OutgoingContextual
Source§fn clone(&self) -> OutgoingContextual
fn clone(&self) -> OutgoingContextual
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 moreimpl Copy for OutgoingContextual
Source§impl Debug for OutgoingContextual
impl Debug for OutgoingContextual
impl Eq for OutgoingContextual
Source§impl PartialEq for OutgoingContextual
impl PartialEq for OutgoingContextual
Source§fn eq(&self, other: &OutgoingContextual) -> bool
fn eq(&self, other: &OutgoingContextual) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutgoingContextual
Auto Trait Implementations§
impl Freeze for OutgoingContextual
impl RefUnwindSafe for OutgoingContextual
impl Send for OutgoingContextual
impl Sync for OutgoingContextual
impl Unpin for OutgoingContextual
impl UnsafeUnpin for OutgoingContextual
impl UnwindSafe for OutgoingContextual
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