pub struct RtdsCommandMessage(/* private fields */);Implementations§
Source§impl RtdsCommandMessage
impl RtdsCommandMessage
Sourcepub const fn command(&self) -> u8
pub const fn command(&self) -> u8
Command for RTDS.
0 = Sound RTDS. 1 = Cancel RTDS. 2 = Start Reverse, 3 = Stop Reverse
Bits: 0..8
Sourcepub const fn with_command_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_command_checked(self, value: u8) -> Result<Self, ()>
Command for RTDS.
0 = Sound RTDS. 1 = Cancel RTDS. 2 = Start Reverse, 3 = Stop Reverse
Bits: 0..8
Sourcepub const fn with_command(self, value: u8) -> Self
pub const fn with_command(self, value: u8) -> Self
Command for RTDS.
0 = Sound RTDS. 1 = Cancel RTDS. 2 = Start Reverse, 3 = Stop Reverse
Bits: 0..8
Sourcepub const fn set_command(&mut self, value: u8)
pub const fn set_command(&mut self, value: u8)
Command for RTDS.
0 = Sound RTDS. 1 = Cancel RTDS. 2 = Start Reverse, 3 = Stop Reverse
Bits: 0..8
Trait Implementations§
Source§impl Clone for RtdsCommandMessage
impl Clone for RtdsCommandMessage
Source§fn clone(&self) -> RtdsCommandMessage
fn clone(&self) -> RtdsCommandMessage
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 RtdsCommandMessage
impl Debug for RtdsCommandMessage
Source§impl Default for RtdsCommandMessage
impl Default for RtdsCommandMessage
Source§impl From<RtdsCommandMessage> for u8
impl From<RtdsCommandMessage> for u8
Source§fn from(v: RtdsCommandMessage) -> Self
fn from(v: RtdsCommandMessage) -> Self
Converts to this type from the input type.
Source§impl From<u8> for RtdsCommandMessage
impl From<u8> for RtdsCommandMessage
Source§impl ToCanFrame for RtdsCommandMessage
impl ToCanFrame for RtdsCommandMessage
impl Copy for RtdsCommandMessage
Auto Trait Implementations§
impl Freeze for RtdsCommandMessage
impl RefUnwindSafe for RtdsCommandMessage
impl Send for RtdsCommandMessage
impl Sync for RtdsCommandMessage
impl Unpin for RtdsCommandMessage
impl UnwindSafe for RtdsCommandMessage
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