#[repr(C, packed(1))]pub struct CmdPacket {
pub header: LinkedListNode,
pub cmdserial: CmdSerial,
}
Fields§
§header: LinkedListNode
§cmdserial: CmdSerial
Implementations§
Source§impl CmdPacket
impl CmdPacket
pub unsafe fn write_into( cmd_buf: *mut CmdPacket, packet_type: TlPacketType, cmd_code: u16, payload: &[u8], )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdPacket
impl RefUnwindSafe for CmdPacket
impl !Send for CmdPacket
impl !Sync for CmdPacket
impl Unpin for CmdPacket
impl UnwindSafe for CmdPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)