pub struct MockFrame {
pub id: Id,
pub data: Vec<u8>,
}
Available on crate feature
can
only.Fields§
§id: Id
§data: Vec<u8>
Trait Implementations§
Source§impl Frame for MockFrame
impl Frame for MockFrame
Source§fn new_remote(_id: impl Into<Id>, _dlc: usize) -> Option<Self>
fn new_remote(_id: impl Into<Id>, _dlc: usize) -> Option<Self>
Creates a new remote frame (RTR bit set). Read more
Source§fn is_extended(&self) -> bool
fn is_extended(&self) -> bool
Returns true if this frame is a extended frame.
Source§fn is_remote_frame(&self) -> bool
fn is_remote_frame(&self) -> bool
Returns true if this frame is a remote frame.
Source§fn dlc(&self) -> usize
fn dlc(&self) -> usize
Returns the data length code (DLC) which is in the range 0..8. Read more
Source§fn is_standard(&self) -> bool
fn is_standard(&self) -> bool
Returns true if this frame is a standard frame.
Source§fn is_data_frame(&self) -> bool
fn is_data_frame(&self) -> bool
Returns true if this frame is a data frame.
impl Eq for MockFrame
impl StructuralPartialEq for MockFrame
Auto Trait Implementations§
impl Freeze for MockFrame
impl RefUnwindSafe for MockFrame
impl Send for MockFrame
impl Sync for MockFrame
impl Unpin for MockFrame
impl UnwindSafe for MockFrame
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