pub struct Frame {
pub header: FrameHeader,
pub bit_length: u16,
pub reliable_index: Option<Sequence24>,
pub sequence_index: Option<Sequence24>,
pub ordering_index: Option<Sequence24>,
pub ordering_channel: Option<u8>,
pub split: Option<SplitInfo>,
pub payload: Bytes,
}Fields§
§header: FrameHeader§bit_length: u16§reliable_index: Option<Sequence24>§sequence_index: Option<Sequence24>§ordering_index: Option<Sequence24>§ordering_channel: Option<u8>§split: Option<SplitInfo>§payload: BytesImplementations§
Source§impl Frame
impl Frame
pub fn payload_len(&self) -> usize
pub fn encoded_size(&self) -> usize
Trait Implementations§
Source§impl RaknetCodec for Frame
impl RaknetCodec for Frame
fn encode_raknet(&self, dst: &mut impl BufMut) -> Result<(), EncodeError>
fn decode_raknet(src: &mut impl Buf) -> Result<Self, DecodeError>
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl !Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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