Skip to main content

TransitionError

Struct TransitionError 

Source
pub struct TransitionError<I2C, I2cError, State> { /* private fields */ }

Implementations§

Source§

impl<I2C, I2cError, State> TransitionError<I2C, I2cError, State>

Source

pub fn error(&self) -> &Error<I2cError>

Source

pub fn into_error(self) -> Error<I2cError>

Source

pub fn into_state(self) -> Dps3xx<I2C, State>

Source

pub fn into_parts(self) -> (Error<I2cError>, Dps3xx<I2C, State>)

Source

pub fn release(self) -> I2C

Trait Implementations§

Source§

impl<I2C, I2cError, State> Debug for TransitionError<I2C, I2cError, State>
where Error<I2cError>: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<I2C, I2cError, State> Forget for TransitionError<I2C, I2cError, State>

§

impl<I2C, I2cError, State> Freeze for TransitionError<I2C, I2cError, State>
where Error<I2cError>: Freeze, Dps3xx<I2C, State>: Freeze,

§

impl<I2C, I2cError, State> Move for TransitionError<I2C, I2cError, State>

§

impl<I2C, I2cError, State> RefUnwindSafe for TransitionError<I2C, I2cError, State>
where Error<I2cError>: RefUnwindSafe, Dps3xx<I2C, State>: RefUnwindSafe,

§

impl<I2C, I2cError, State> Send for TransitionError<I2C, I2cError, State>
where Error<I2cError>: Send, Dps3xx<I2C, State>: Send,

§

impl<I2C, I2cError, State> Sync for TransitionError<I2C, I2cError, State>
where Error<I2cError>: Sync, Dps3xx<I2C, State>: Sync,

§

impl<I2C, I2cError, State> Unpin for TransitionError<I2C, I2cError, State>
where Error<I2cError>: Unpin, Dps3xx<I2C, State>: Unpin,

§

impl<I2C, I2cError, State> UnsafeUnpin for TransitionError<I2C, I2cError, State>
where Error<I2cError>: UnsafeUnpin, Dps3xx<I2C, State>: UnsafeUnpin,

§

impl<I2C, I2cError, State> UnwindSafe for TransitionError<I2C, I2cError, State>
where Error<I2cError>: UnwindSafe, Dps3xx<I2C, 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.