Struct bxcan::FramePriority
source · pub struct FramePriority(/* private fields */);
Expand description
Priority of a CAN frame.
Returned by Frame::priority
.
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§
source§impl Clone for FramePriority
impl Clone for FramePriority
source§fn clone(&self) -> FramePriority
fn clone(&self) -> FramePriority
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FramePriority
impl Debug for FramePriority
source§impl Ord for FramePriority
impl Ord for FramePriority
Ordering is based on the Identifier and frame type (data vs. remote) and can be used to sort frames by priority.
source§impl PartialEq for FramePriority
impl PartialEq for FramePriority
source§impl PartialOrd for FramePriority
impl PartialOrd for FramePriority
impl Copy for FramePriority
impl Eq for FramePriority
Auto Trait Implementations§
impl Freeze for FramePriority
impl RefUnwindSafe for FramePriority
impl Send for FramePriority
impl Sync for FramePriority
impl Unpin for FramePriority
impl UnwindSafe for FramePriority
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)