Struct ctaphid_types::InitializationPacket [−][src]
pub struct InitializationPacket<T: AsRef<[u8]>> {
pub channel: Channel,
pub command: Command,
pub length: u16,
pub data: T,
}
Expand description
A CTAPHID initialization packet.
Fields
channel: Channel
The channel this packet is sent or received on.
command: Command
The CTAPHID command.
length: u16
The length of the payload data.
data: T
The payload data.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<T: PartialEq + AsRef<[u8]>> PartialEq<InitializationPacket<T>> for InitializationPacket<T>
impl<T: PartialEq + AsRef<[u8]>> PartialEq<InitializationPacket<T>> for InitializationPacket<T>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T: PartialOrd + AsRef<[u8]>> PartialOrd<InitializationPacket<T>> for InitializationPacket<T>
impl<T: PartialOrd + AsRef<[u8]>> PartialOrd<InitializationPacket<T>> for InitializationPacket<T>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for InitializationPacket<T> where
T: RefUnwindSafe,
impl<T> Send for InitializationPacket<T> where
T: Send,
impl<T> Sync for InitializationPacket<T> where
T: Sync,
impl<T> Unpin for InitializationPacket<T> where
T: Unpin,
impl<T> UnwindSafe for InitializationPacket<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more