pub struct FramePacket {
pub sequence: u32,
pub frames: Vec<Frame>,
pub reliability: Reliability,
}
Expand description
Frames are a encapsulation of a packet or packets. They are used to send packets to the connection in a reliable way.
Fields§
§sequence: u32
§frames: Vec<Frame>
§reliability: Reliability
Implementations§
Source§impl FramePacket
impl FramePacket
Trait Implementations§
Source§impl Clone for FramePacket
impl Clone for FramePacket
Source§fn clone(&self) -> FramePacket
fn clone(&self) -> FramePacket
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 Debug for FramePacket
impl Debug for FramePacket
Source§impl Reader<FramePacket> for FramePacket
impl Reader<FramePacket> for FramePacket
Source§fn read(buf: &mut ByteReader) -> Result<FramePacket, Error>
fn read(buf: &mut ByteReader) -> Result<FramePacket, Error>
Source§impl Writer for FramePacket
impl Writer for FramePacket
Source§fn write_to_bytes(&self) -> Result<ByteWriter, Error>
fn write_to_bytes(&self) -> Result<ByteWriter, Error>
This is a utility function to write
Self
to a ByteWriter
without
needing to create a ByteWriter
first.Auto Trait Implementations§
impl Freeze for FramePacket
impl RefUnwindSafe for FramePacket
impl Send for FramePacket
impl Sync for FramePacket
impl Unpin for FramePacket
impl UnwindSafe for FramePacket
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