pub struct BmsCriticallyFaulted(/* private fields */);Implementations§
Source§impl BmsCriticallyFaulted
impl BmsCriticallyFaulted
Sourcepub const fn critically_faulted(&self) -> bool
pub const fn critically_faulted(&self) -> bool
If the BMS has a Critical Fault
Bits: 0..1
Sourcepub const fn with_critically_faulted_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_critically_faulted_checked( self, value: bool, ) -> Result<Self, ()>
If the BMS has a Critical Fault
Bits: 0..1
Sourcepub const fn with_critically_faulted(self, value: bool) -> Self
pub const fn with_critically_faulted(self, value: bool) -> Self
If the BMS has a Critical Fault
Bits: 0..1
Sourcepub const fn set_critically_faulted(&mut self, value: bool)
pub const fn set_critically_faulted(&mut self, value: bool)
If the BMS has a Critical Fault
Bits: 0..1
Trait Implementations§
Source§impl Clone for BmsCriticallyFaulted
impl Clone for BmsCriticallyFaulted
Source§fn clone(&self) -> BmsCriticallyFaulted
fn clone(&self) -> BmsCriticallyFaulted
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 BmsCriticallyFaulted
impl Debug for BmsCriticallyFaulted
Source§impl Default for BmsCriticallyFaulted
impl Default for BmsCriticallyFaulted
Source§impl From<BmsCriticallyFaulted> for u8
impl From<BmsCriticallyFaulted> for u8
Source§fn from(v: BmsCriticallyFaulted) -> Self
fn from(v: BmsCriticallyFaulted) -> Self
Converts to this type from the input type.
Source§impl From<u8> for BmsCriticallyFaulted
impl From<u8> for BmsCriticallyFaulted
Source§impl ToCanFrame for BmsCriticallyFaulted
impl ToCanFrame for BmsCriticallyFaulted
impl Copy for BmsCriticallyFaulted
Auto Trait Implementations§
impl Freeze for BmsCriticallyFaulted
impl RefUnwindSafe for BmsCriticallyFaulted
impl Send for BmsCriticallyFaulted
impl Sync for BmsCriticallyFaulted
impl Unpin for BmsCriticallyFaulted
impl UnwindSafe for BmsCriticallyFaulted
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