VendorCommand

Struct VendorCommand 

Source
pub struct VendorCommand(/* private fields */);
Expand description

A CTAPHID vendor command.

See § 11.2.9.3 of the CTAP specification.

Implementations§

Source§

impl VendorCommand

Source

pub const RANGE: RangeInclusive<u8>

The range for valid vendor command IDs.

Source

pub const H40: VendorCommand

The vendor-specific command with the ID 0x40.

Source

pub const H41: VendorCommand

The vendor-specific command with the ID 0x41.

Source

pub const H42: VendorCommand

The vendor-specific command with the ID 0x42.

Source

pub const H43: VendorCommand

The vendor-specific command with the ID 0x43.

Source

pub const H44: VendorCommand

The vendor-specific command with the ID 0x44.

Source

pub const H45: VendorCommand

The vendor-specific command with the ID 0x45.

Source

pub const H46: VendorCommand

The vendor-specific command with the ID 0x46.

Source

pub const H47: VendorCommand

The vendor-specific command with the ID 0x47.

Source

pub const H48: VendorCommand

The vendor-specific command with the ID 0x48.

Source

pub const H49: VendorCommand

The vendor-specific command with the ID 0x49.

Source

pub const H4A: VendorCommand

The vendor-specific command with the ID 0x4a.

Source

pub const H4B: VendorCommand

The vendor-specific command with the ID 0x4b.

Source

pub const H4C: VendorCommand

The vendor-specific command with the ID 0x4c.

Source

pub const H4D: VendorCommand

The vendor-specific command with the ID 0x4d.

Source

pub const H4E: VendorCommand

The vendor-specific command with the ID 0x4e.

Source

pub const H4F: VendorCommand

The vendor-specific command with the ID 0x4f.

Source

pub const H50: VendorCommand

The vendor-specific command with the ID 0x50.

Source

pub const H51: VendorCommand

The vendor-specific command with the ID 0x51.

Source

pub const H52: VendorCommand

The vendor-specific command with the ID 0x52.

Source

pub const H53: VendorCommand

The vendor-specific command with the ID 0x53.

Source

pub const H54: VendorCommand

The vendor-specific command with the ID 0x54.

Source

pub const H55: VendorCommand

The vendor-specific command with the ID 0x55.

Source

pub const H56: VendorCommand

The vendor-specific command with the ID 0x56.

Source

pub const H57: VendorCommand

The vendor-specific command with the ID 0x57.

Source

pub const H58: VendorCommand

The vendor-specific command with the ID 0x58.

Source

pub const H59: VendorCommand

The vendor-specific command with the ID 0x59.

Source

pub const H5A: VendorCommand

The vendor-specific command with the ID 0x5a.

Source

pub const H5B: VendorCommand

The vendor-specific command with the ID 0x5b.

Source

pub const H5C: VendorCommand

The vendor-specific command with the ID 0x5c.

Source

pub const H5D: VendorCommand

The vendor-specific command with the ID 0x5d.

Source

pub const H5E: VendorCommand

The vendor-specific command with the ID 0x5e.

Source

pub const H5F: VendorCommand

The vendor-specific command with the ID 0x5f.

Source

pub const H60: VendorCommand

The vendor-specific command with the ID 0x60.

Source

pub const H61: VendorCommand

The vendor-specific command with the ID 0x61.

Source

pub const H62: VendorCommand

The vendor-specific command with the ID 0x62.

Source

pub const H63: VendorCommand

The vendor-specific command with the ID 0x63.

Source

pub const H64: VendorCommand

The vendor-specific command with the ID 0x64.

Source

pub const H65: VendorCommand

The vendor-specific command with the ID 0x65.

Source

pub const H66: VendorCommand

The vendor-specific command with the ID 0x66.

Source

pub const H67: VendorCommand

The vendor-specific command with the ID 0x67.

Source

pub const H68: VendorCommand

The vendor-specific command with the ID 0x68.

Source

pub const H69: VendorCommand

The vendor-specific command with the ID 0x69.

Source

pub const H6A: VendorCommand

The vendor-specific command with the ID 0x6a.

Source

pub const H6B: VendorCommand

The vendor-specific command with the ID 0x6b.

Source

pub const H6C: VendorCommand

The vendor-specific command with the ID 0x6c.

Source

pub const H6D: VendorCommand

The vendor-specific command with the ID 0x6d.

Source

pub const H6E: VendorCommand

The vendor-specific command with the ID 0x6e.

Source

pub const H6F: VendorCommand

The vendor-specific command with the ID 0x6f.

Source

pub const H70: VendorCommand

The vendor-specific command with the ID 0x70.

Source

pub const H71: VendorCommand

The vendor-specific command with the ID 0x71.

Source

pub const H72: VendorCommand

The vendor-specific command with the ID 0x72.

Source

pub const H73: VendorCommand

The vendor-specific command with the ID 0x73.

Source

pub const H74: VendorCommand

The vendor-specific command with the ID 0x74.

Source

pub const H75: VendorCommand

The vendor-specific command with the ID 0x75.

Source

pub const H76: VendorCommand

The vendor-specific command with the ID 0x76.

Source

pub const H77: VendorCommand

The vendor-specific command with the ID 0x77.

Source

pub const H78: VendorCommand

The vendor-specific command with the ID 0x78.

Source

pub const H79: VendorCommand

The vendor-specific command with the ID 0x79.

Source

pub const H7A: VendorCommand

The vendor-specific command with the ID 0x7a.

Source

pub const H7B: VendorCommand

The vendor-specific command with the ID 0x7b.

Source

pub const H7C: VendorCommand

The vendor-specific command with the ID 0x7c.

Source

pub const H7D: VendorCommand

The vendor-specific command with the ID 0x7d.

Source

pub const H7E: VendorCommand

The vendor-specific command with the ID 0x7e.

Source

pub const H7F: VendorCommand

The vendor-specific command with the ID 0x7f.

Source

pub fn new(id: u8) -> Option<Self>

Creates a new VendorCommand from the given command ID if it is within Self::RANGE.

Trait Implementations§

Source§

impl Clone for VendorCommand

Source§

fn clone(&self) -> VendorCommand

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VendorCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<VendorCommand> for u8

Source§

fn from(command: VendorCommand) -> u8

Converts to this type from the input type.
Source§

impl Ord for VendorCommand

Source§

fn cmp(&self, other: &VendorCommand) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VendorCommand

Source§

fn eq(&self, other: &VendorCommand) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for VendorCommand

Source§

fn partial_cmp(&self, other: &VendorCommand) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for VendorCommand

Source§

impl Eq for VendorCommand

Source§

impl StructuralPartialEq for VendorCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.