pub struct InitResponse<T: AsRef<[u8]>> {
pub nonce: [u8; 8],
pub channel: Channel,
pub protocol_version: u8,
pub device_version: DeviceVersion,
pub capabilities: Capabilities,
pub rest: T,
}Expand description
The response of the CTAPHID INIT command.
Fields§
§nonce: [u8; 8]The nonce as sent in the init request.
channel: ChannelThe channel allocated for this session.
protocol_version: u8The protocol version implemented by the device.
device_version: DeviceVersionThe version of the device.
capabilities: CapabilitiesThe capabilities of the device.
rest: TAdditional flags that are not supported by this library.
Implementations§
Trait Implementations§
Source§impl<T: Clone + AsRef<[u8]>> Clone for InitResponse<T>
impl<T: Clone + AsRef<[u8]>> Clone for InitResponse<T>
Source§fn clone(&self) -> InitResponse<T>
fn clone(&self) -> InitResponse<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Ord + AsRef<[u8]>> Ord for InitResponse<T>
impl<T: Ord + AsRef<[u8]>> Ord for InitResponse<T>
Source§fn cmp(&self, other: &InitResponse<T>) -> Ordering
fn cmp(&self, other: &InitResponse<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + AsRef<[u8]>> PartialOrd for InitResponse<T>
impl<T: PartialOrd + AsRef<[u8]>> PartialOrd for InitResponse<T>
impl<T: Copy + AsRef<[u8]>> Copy for InitResponse<T>
impl<T: Eq + AsRef<[u8]>> Eq for InitResponse<T>
impl<T: AsRef<[u8]>> StructuralPartialEq for InitResponse<T>
Auto Trait Implementations§
impl<T> Freeze for InitResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for InitResponse<T>where
T: RefUnwindSafe,
impl<T> Send for InitResponse<T>where
T: Send,
impl<T> Sync for InitResponse<T>where
T: Sync,
impl<T> Unpin for InitResponse<T>where
T: Unpin,
impl<T> UnwindSafe for InitResponse<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