pub struct CommandPacket<T> { /* private fields */ }Implementations§
Source§impl<T> CommandPacket<T>where
T: CommandScd,
impl<T> CommandPacket<T>where
T: CommandScd,
pub fn serialize(&self, buf: impl Write) -> Result<()>
pub fn ccd(&self) -> &CommandCcd
pub fn scd(&self) -> &T
pub fn cmd_len(&self) -> usize
pub fn request_id(&self) -> u16
Sourcepub fn maximum_ack_len(&self) -> usize
pub fn maximum_ack_len(&self) -> usize
Maximum length of corresponding ack packet.
pub fn new(scd: T, request_id: u16) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CommandPacket<T>where
T: Freeze,
impl<T> RefUnwindSafe for CommandPacket<T>where
T: RefUnwindSafe,
impl<T> Send for CommandPacket<T>where
T: Send,
impl<T> Sync for CommandPacket<T>where
T: Sync,
impl<T> Unpin for CommandPacket<T>where
T: Unpin,
impl<T> UnwindSafe for CommandPacket<T>where
T: UnwindSafe,
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