pub struct Reset;Implementations§
Trait Implementations§
Source§impl Command for Reset
impl Command for Reset
type Return = CommandComplete<StatusReturn>
fn opcode() -> Opcode
fn byte_len(&self) -> usize
Source§fn pack_into(&self, buf: &mut [u8]) -> Result<(), PackError>
fn pack_into(&self, buf: &mut [u8]) -> Result<(), PackError>
Pack the command parameters into a byte buffer.
!!
buf.len() == Command.byte_len() otherwise will return PackError::BadLength !! Read morefn unpack_from(buf: &[u8]) -> Result<Self, PackError>where
Self: Sized,
fn full_len(&self) -> usize
fn pack_full(&self, buf: &mut [u8]) -> Result<usize, PackError>
fn pack_command_packet<S: Storage<u8>>( &self, ) -> Result<CommandPacket<S>, PackError>
fn unpack_command_packet<S: AsRef<[u8]>>(
packet: &CommandPacket<S>,
) -> Result<Self, PackError>where
Self: Sized,
fn packet_byte_len(&self) -> usize
fn packet_pack_into(&self, buf: &mut [u8]) -> Result<usize, PackError>
fn unpack_return( event: EventPacket<&[u8]>, ) -> Result<Option<Self::Return>, PackError>
Auto Trait Implementations§
impl Freeze for Reset
impl RefUnwindSafe for Reset
impl Send for Reset
impl Sync for Reset
impl Unpin for Reset
impl UnsafeUnpin for Reset
impl UnwindSafe for Reset
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