[][src]Struct jaylink::HardwareVersion

pub struct HardwareVersion(_);

A hardware version returned by JayLink::read_hardware_version.

Note that the reported hardware version does not allow reliable feature detection, since embedded J-Link probes might return a hardware version of 1.0.0 despite supporting SWD and other much newer features.

Implementations

impl HardwareVersion[src]

pub fn hardware_type(&self) -> Option<HardwareType>[src]

Returns the type of hardware (or None if the hardware type is unknown).

pub fn major(&self) -> u8[src]

The major version.

pub fn minor(&self) -> u8[src]

The minor version.

pub fn revision(&self) -> u8[src]

The hardware revision.

Trait Implementations

impl Debug for HardwareVersion[src]

impl Display for HardwareVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.