Struct bantamweight::DataPacket
source · [−]Fields
bytes: Vec<u8>
Implementations
sourceimpl DataPacket
impl DataPacket
pub fn new(bytes: Vec<u8>) -> DataPacket
Trait Implementations
sourceimpl PacketHeader<BantamPacketType> for DataPacket
impl PacketHeader<BantamPacketType> for DataPacket
fn get_type(&self) -> BantamPacketType
sourceimpl Serializable for DataPacket
impl Serializable for DataPacket
fn to_stream(&self, stream: &mut BinaryStream)
fn from_stream(stream: &mut BinaryStream) -> Self
Auto Trait Implementations
impl RefUnwindSafe for DataPacket
impl Send for DataPacket
impl Sync for DataPacket
impl Unpin for DataPacket
impl UnwindSafe for DataPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more