#[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