Struct raknet::InternalPacket
source · pub struct InternalPacket<'a> {
pub time: RakNetTime,
pub msg_num: MessageNumberType,
pub reliability: PacketReliability,
pub ordering: Option<Ordering>,
pub is_split_packet: bool,
pub data_bit_size: usize,
pub data: &'a [u8],
}
Fields§
§time: RakNetTime
§msg_num: MessageNumberType
§reliability: PacketReliability
§ordering: Option<Ordering>
§is_split_packet: bool
§data_bit_size: usize
§data: &'a [u8]
Implementations§
source§impl<'a> InternalPacket<'a>
impl<'a> InternalPacket<'a>
pub fn data(&self) -> &'a [u8] ⓘ
pub fn write(&self, output: &mut BitStreamWrite) -> usize
pub fn parse( bit_stream: &mut BitStreamRead<'a>, time: RakNetTime ) -> Result<InternalPacket<'a>>
Trait Implementations§
source§impl<'a> Clone for InternalPacket<'a>
impl<'a> Clone for InternalPacket<'a>
source§fn clone(&self) -> InternalPacket<'a>
fn clone(&self) -> InternalPacket<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for InternalPacket<'a>
impl<'a> Send for InternalPacket<'a>
impl<'a> Sync for InternalPacket<'a>
impl<'a> Unpin for InternalPacket<'a>
impl<'a> UnwindSafe for InternalPacket<'a>
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