Enum solo2::device::Device

source ·
pub enum Device {
    Lpc55(Lpc55),
    Solo2(Solo2),
}
Expand description

A SoloKeys Solo 2 device, which may be in regular (Solo2) or update (Lpc55) mode.

Not every pcsc::Device is a Device; currently if it reacts to the SoloKeys administrative App with a valid UUID, then we treat it as such.

Variants§

§

Lpc55(Lpc55)

§

Solo2(Solo2)

Implementations§

NB: will hang if in bootloader mode and Solo 2 firmware does not come up cleanly.

NB: Requires user tap if device is in Solo2 mode.

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Fails is if zero or >1 devices have the given UUID.

Returns the UUID associated with the thing, if it has a UUID. Read more
Returns all of the available things.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.