pub struct BattboxEfuseState(/* private fields */);Implementations§
Source§impl BattboxEfuseState
impl BattboxEfuseState
Sourcepub const fn with_state_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_state_checked(self, value: u8) -> Result<Self, ()>
Battbox eFuse state.
0=ON, 1=AUTO, 2=OFF
Bits: 0..8
Sourcepub const fn with_state(self, value: u8) -> Self
pub const fn with_state(self, value: u8) -> Self
Battbox eFuse state.
0=ON, 1=AUTO, 2=OFF
Bits: 0..8
Trait Implementations§
Source§impl Clone for BattboxEfuseState
impl Clone for BattboxEfuseState
Source§fn clone(&self) -> BattboxEfuseState
fn clone(&self) -> BattboxEfuseState
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 BattboxEfuseState
impl Debug for BattboxEfuseState
Source§impl Default for BattboxEfuseState
impl Default for BattboxEfuseState
Source§impl From<BattboxEfuseState> for u8
impl From<BattboxEfuseState> for u8
Source§fn from(v: BattboxEfuseState) -> Self
fn from(v: BattboxEfuseState) -> Self
Converts to this type from the input type.
Source§impl From<u8> for BattboxEfuseState
impl From<u8> for BattboxEfuseState
Source§impl ToCanFrame for BattboxEfuseState
impl ToCanFrame for BattboxEfuseState
impl Copy for BattboxEfuseState
Auto Trait Implementations§
impl Freeze for BattboxEfuseState
impl RefUnwindSafe for BattboxEfuseState
impl Send for BattboxEfuseState
impl Sync for BattboxEfuseState
impl Unpin for BattboxEfuseState
impl UnwindSafe for BattboxEfuseState
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