pub struct OutgoingReliable {
pub op_code: OpCode,
pub payload: Bytes,
}Expand description
A reliable data packet the channel wishes to send (without OP code or CRC framing, which the session layer applies).
Fields§
§op_code: OpCodeThe OP code of the packet (OpCode::ReliableData or
OpCode::ReliableDataFragment).
payload: BytesThe packet payload: a big-endian u16 sequence, an optional big-endian u32
total-length prefix (master fragments only), and the data chunk.
Trait Implementations§
Source§impl Clone for OutgoingReliable
impl Clone for OutgoingReliable
Source§fn clone(&self) -> OutgoingReliable
fn clone(&self) -> OutgoingReliable
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 moreSource§impl Debug for OutgoingReliable
impl Debug for OutgoingReliable
impl Eq for OutgoingReliable
Source§impl PartialEq for OutgoingReliable
impl PartialEq for OutgoingReliable
Source§fn eq(&self, other: &OutgoingReliable) -> bool
fn eq(&self, other: &OutgoingReliable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutgoingReliable
Auto Trait Implementations§
impl !Freeze for OutgoingReliable
impl RefUnwindSafe for OutgoingReliable
impl Send for OutgoingReliable
impl Sync for OutgoingReliable
impl Unpin for OutgoingReliable
impl UnsafeUnpin for OutgoingReliable
impl UnwindSafe for OutgoingReliable
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