pub struct SocketCanFrame { /* private fields */ }Trait Implementations§
Source§impl Frame for SocketCanFrame
impl Frame for SocketCanFrame
type Channel = String
fn new_can(id: CanId, data: &[u8]) -> CanResult<Self>
fn new_remote(id: CanId, dlc: u8) -> CanResult<Self>
fn new_can_fd(id: CanId, data: &[u8], flags: CanFdFlags) -> CanResult<Self>
fn id(&self) -> CanId
fn channel(&self) -> Self::Channel
fn set_channel(&mut self, v: Self::Channel) -> &mut Self
fn kind(&self) -> CanKind
fn format(&self) -> FrameFormat
fn data(&self) -> &[u8] ⓘ
fn len(&self) -> usize
fn direction(&self) -> CanDirection
fn set_direction(&mut self, d: CanDirection) -> &mut Self
fn timestamp(&self) -> Option<Timestamp>
fn set_timestamp(&mut self, ts: Option<Timestamp>) -> &mut Self
fn is_bitrate_switch(&self) -> bool
fn set_bitrate_switch(&mut self, v: bool) -> &mut Self
fn is_esi(&self) -> bool
fn set_esi(&mut self, v: bool) -> &mut Self
fn dlc(&self) -> Result<u8, Error>
fn is_remote(&self) -> bool
fn is_error_frame(&self) -> bool
fn is_extended(&self) -> bool
Source§impl Clone for SocketCanFrame
impl Clone for SocketCanFrame
Source§fn clone(&self) -> SocketCanFrame
fn clone(&self) -> SocketCanFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SocketCanFrame
impl Debug for SocketCanFrame
Source§impl Display for SocketCanFrame
impl Display for SocketCanFrame
Source§impl Into<CanAnyFrame> for SocketCanFrame
impl Into<CanAnyFrame> for SocketCanFrame
Source§fn into(self) -> CanAnyFrame
fn into(self) -> CanAnyFrame
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for SocketCanFrame
impl PartialEq for SocketCanFrame
Source§impl TryFrom<CanAnyFrame> for SocketCanFrame
impl TryFrom<CanAnyFrame> for SocketCanFrame
Auto Trait Implementations§
impl Freeze for SocketCanFrame
impl RefUnwindSafe for SocketCanFrame
impl Send for SocketCanFrame
impl Sync for SocketCanFrame
impl Unpin for SocketCanFrame
impl UnsafeUnpin for SocketCanFrame
impl UnwindSafe for SocketCanFrame
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