[−][src]Struct jaylink::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
impl RefUnwindSafe for HardwareVersion
impl Send for HardwareVersion
impl Sync for HardwareVersion
impl Unpin for HardwareVersion
impl UnwindSafe for HardwareVersion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,