Struct bxcan::FramePriority[][src]

pub struct FramePriority(_);

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]

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.

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]

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, 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.