pub struct DriveEnableCommand(/* private fields */);Implementations§
Source§impl DriveEnableCommand
impl DriveEnableCommand
Sourcepub const fn drive_enable(&self) -> u8
pub const fn drive_enable(&self) -> u8
Drive allowed
Only 0 and 1 values are accepted. Must be sent periodically to be enabled. Refer to chapter 4.3
Bits: 0..8
Sourcepub const fn with_drive_enable_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_drive_enable_checked(self, value: u8) -> Result<Self, ()>
Drive allowed
Only 0 and 1 values are accepted. Must be sent periodically to be enabled. Refer to chapter 4.3
Bits: 0..8
Sourcepub const fn with_drive_enable(self, value: u8) -> Self
pub const fn with_drive_enable(self, value: u8) -> Self
Drive allowed
Only 0 and 1 values are accepted. Must be sent periodically to be enabled. Refer to chapter 4.3
Bits: 0..8
Sourcepub const fn set_drive_enable(&mut self, value: u8)
pub const fn set_drive_enable(&mut self, value: u8)
Drive allowed
Only 0 and 1 values are accepted. Must be sent periodically to be enabled. Refer to chapter 4.3
Bits: 0..8
Trait Implementations§
Source§impl Clone for DriveEnableCommand
impl Clone for DriveEnableCommand
Source§fn clone(&self) -> DriveEnableCommand
fn clone(&self) -> DriveEnableCommand
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 DriveEnableCommand
impl Debug for DriveEnableCommand
Source§impl Default for DriveEnableCommand
impl Default for DriveEnableCommand
Source§impl From<DriveEnableCommand> for u8
impl From<DriveEnableCommand> for u8
Source§fn from(v: DriveEnableCommand) -> Self
fn from(v: DriveEnableCommand) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DriveEnableCommand
impl From<u8> for DriveEnableCommand
Source§impl ToCanFrame for DriveEnableCommand
impl ToCanFrame for DriveEnableCommand
impl Copy for DriveEnableCommand
Auto Trait Implementations§
impl Freeze for DriveEnableCommand
impl RefUnwindSafe for DriveEnableCommand
impl Send for DriveEnableCommand
impl Sync for DriveEnableCommand
impl Unpin for DriveEnableCommand
impl UnwindSafe for DriveEnableCommand
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