Enum probe_rs::architecture::arm::dp::DebugPortVersion
source · [−]pub enum DebugPortVersion {
DPv0,
DPv1,
DPv2,
Unsupported(u8),
}
Expand description
The version of the debug port.
Variants
DPv0
Version 0 (not common)
DPv1
Version 1 (most of the ARM cores feature this version)
DPv2
Version 2 (very rare (only known example is the RP2040))
Unsupported(u8)
Some unsupported value was encountered!
Trait Implementations
sourceimpl Clone for DebugPortVersion
impl Clone for DebugPortVersion
sourcefn clone(&self) -> DebugPortVersion
fn clone(&self) -> DebugPortVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DebugPortVersion
impl Debug for DebugPortVersion
sourceimpl Display for DebugPortVersion
impl Display for DebugPortVersion
sourceimpl From<DebugPortVersion> for u8
impl From<DebugPortVersion> for u8
sourcefn from(version: DebugPortVersion) -> Self
fn from(version: DebugPortVersion) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for DebugPortVersion
impl From<u8> for DebugPortVersion
sourceimpl PartialEq<DebugPortVersion> for DebugPortVersion
impl PartialEq<DebugPortVersion> for DebugPortVersion
sourcefn eq(&self, other: &DebugPortVersion) -> bool
fn eq(&self, other: &DebugPortVersion) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DebugPortVersion) -> bool
fn ne(&self, other: &DebugPortVersion) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DebugPortVersion> for DebugPortVersion
impl PartialOrd<DebugPortVersion> for DebugPortVersion
sourcefn partial_cmp(&self, other: &DebugPortVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &DebugPortVersion) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for DebugPortVersion
impl StructuralPartialEq for DebugPortVersion
Auto Trait Implementations
impl RefUnwindSafe for DebugPortVersion
impl Send for DebugPortVersion
impl Sync for DebugPortVersion
impl Unpin for DebugPortVersion
impl UnwindSafe for DebugPortVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more