pub struct CanMessage { /* private fields */ }
Trait Implementations§
Source§impl Frame for CanMessage
impl Frame for CanMessage
type Channel = String
fn new(id: impl Into<CanId>, data: &[u8]) -> Option<Self>
fn new_remote(id: impl Into<CanId>, len: usize) -> Option<Self>
fn timestamp(&self) -> u64
fn set_timestamp(&mut self, value: Option<u64>) -> &mut Self
fn can_type(&self) -> CanType
fn set_can_type(&mut self, type: CanType) -> &mut Self
fn is_remote(&self) -> bool
fn is_extended(&self) -> bool
fn direct(&self) -> CanDirect
fn set_direct(&mut self, direct: CanDirect) -> &mut Self
fn is_bitrate_switch(&self) -> bool
fn set_bitrate_switch(&mut self, value: bool) -> &mut Self
fn is_error_frame(&self) -> bool
fn set_error_frame(&mut self, value: bool) -> &mut Self
fn channel(&self) -> Self::Channel
fn set_channel(&mut self, value: Self::Channel) -> &mut Self
fn length(&self) -> usize
fn dlc(&self) -> isize
Source§impl Clone for CanMessage
impl Clone for CanMessage
Source§fn clone(&self) -> CanMessage
fn clone(&self) -> CanMessage
Returns a duplicate 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 CanMessage
impl Debug for CanMessage
Source§impl Display for CanMessage
impl Display for CanMessage
Source§impl From<CanAnyFrame> for CanMessage
impl From<CanAnyFrame> for CanMessage
Source§fn from(frame: CanAnyFrame) -> Self
fn from(frame: CanAnyFrame) -> Self
Converts to this type from the input type.
Source§impl Into<CanAnyFrame> for CanMessage
impl Into<CanAnyFrame> for CanMessage
Source§fn into(self) -> CanAnyFrame
fn into(self) -> CanAnyFrame
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for CanMessage
impl PartialEq for CanMessage
Auto Trait Implementations§
impl Freeze for CanMessage
impl RefUnwindSafe for CanMessage
impl Send for CanMessage
impl Sync for CanMessage
impl Unpin for CanMessage
impl UnwindSafe for CanMessage
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