LVReset

Struct LVReset 

Source
pub struct LVReset<State> { /* private fields */ }
Expand description

Interface that controls when the Low Voltage Detection is active

Implementations§

Source§

impl LVReset<RunAndStop>

Source

pub fn into_run_only(self) -> LVReset<RunOnly>

Do not run the Low Voltage Detection Reset during stop mode

Source

pub fn into_disabled(self) -> LVReset<Disabled>

Disable Reset upon Low Voltage Detection

This can only be changed one time, and it defaults to enabled.

Source§

impl LVReset<RunOnly>

Source

pub fn into_run_and_stop(self) -> LVReset<RunAndStop>

Run the Low Voltage Detection Reset during stop mode

Source

pub fn into_disabled(self) -> LVReset<Disabled>

Disable Reset upon Low Voltage Detection

This can only be changed one time, and it defaults to enabled.

Auto Trait Implementations§

§

impl<State> Freeze for LVReset<State>

§

impl<State> RefUnwindSafe for LVReset<State>
where State: RefUnwindSafe,

§

impl<State> Send for LVReset<State>
where State: Send,

§

impl<State> Sync for LVReset<State>
where State: Sync,

§

impl<State> Unpin for LVReset<State>
where State: Unpin,

§

impl<State> UnwindSafe for LVReset<State>
where State: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.