pub struct BinaryFrame<C, T = Vec<u8>>where
C: ChannelKind,{
pub channel: C,
pub flags: BinaryFlags,
pub sequence: u32,
pub payload: T,
}Expand description
Binary frame format:
[magic:2][version:1][flags:1][channel:1][sequence:4][payload:var]
The channel byte is determined by ChannelKind::wire_id().
Fields§
§channel: C§flags: BinaryFlags§sequence: u32§payload: TTrait Implementations§
Source§impl<C, T> Clone for BinaryFrame<C, T>
impl<C, T> Clone for BinaryFrame<C, T>
Source§fn clone(&self) -> BinaryFrame<C, T>
fn clone(&self) -> BinaryFrame<C, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C, T> Debug for BinaryFrame<C, T>
impl<C, T> Debug for BinaryFrame<C, T>
Source§impl<C, T> PartialEq for BinaryFrame<C, T>
impl<C, T> PartialEq for BinaryFrame<C, T>
impl<C, T> Eq for BinaryFrame<C, T>
impl<C, T> StructuralPartialEq for BinaryFrame<C, T>where
C: ChannelKind,
Auto Trait Implementations§
impl<C, T> Freeze for BinaryFrame<C, T>
impl<C, T> RefUnwindSafe for BinaryFrame<C, T>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<C, T> Send for BinaryFrame<C, T>where
T: Send,
impl<C, T> Sync for BinaryFrame<C, T>where
T: Sync,
impl<C, T> Unpin for BinaryFrame<C, T>
impl<C, T> UnsafeUnpin for BinaryFrame<C, T>where
C: UnsafeUnpin,
T: UnsafeUnpin,
impl<C, T> UnwindSafe for BinaryFrame<C, T>where
C: UnwindSafe,
T: UnwindSafe,
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