Struct bxcan::FramePriority [−][src]
Priority of a CAN frame.
The priority of a frame is determined by the bits that are part of the arbitration field. These consist of the frame identifier bits (including the IDE bit, which is 0 for extended frames and 1 for standard frames), as well as the RTR bit, which determines whether a frame is a data or remote frame. Lower values of the arbitration field have higher priority.
This struct wraps the arbitration field and implements PartialOrd
and Ord
accordingly,
ordering higher priorities greater than lower ones.
Trait Implementations
impl Clone for FramePriority
[src]
fn clone(&self) -> FramePriority
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FramePriority
[src]
impl Debug for FramePriority
[src]
impl Eq for FramePriority
[src]
impl Ord for FramePriority
[src]
Ordering is based on the Identifier and frame type (data vs. remote) and can be used to sort frames by priority.
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<FramePriority> for FramePriority
[src]
impl PartialOrd<FramePriority> for FramePriority
[src]
Auto Trait Implementations
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,
pub 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, 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.
pub 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>,