#[repr(C)]pub struct CPacket {
pub packet_type: CPacketType,
pub data: *const c_void,
pub len: usize,
}Expand description
Generic packet container The data field interpretation depends on packet_type
Fields§
§packet_type: CPacketType§data: *const c_void§len: usizeAuto Trait Implementations§
impl Freeze for CPacket
impl RefUnwindSafe for CPacket
impl !Send for CPacket
impl !Sync for CPacket
impl Unpin for CPacket
impl UnwindSafe for CPacket
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