Skip to main content

Error

Enum Error 

Source
pub enum Error<SPI, RESET, DIO0> {
    VersionMismatch(u8),
    Reset(RESET),
    SPI(SPI),
    DIO0(DIO0),
    SyncSize,
    WrongPacketFormat,
}
Expand description

Error for rfm69 transceiver

Variants§

§

VersionMismatch(u8)

§

Reset(RESET)

§

SPI(SPI)

§

DIO0(DIO0)

§

SyncSize

§

WrongPacketFormat

Trait Implementations§

Source§

impl<SPI: Debug, RESET: Debug, DIO0: Debug> Debug for Error<SPI, RESET, DIO0>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<SPI, RESET, DIO0> Format for Error<SPI, RESET, DIO0>
where RESET: Format, SPI: Format, DIO0: Format,

Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl<SPI, RESET, DIO0> From<Error<SPI, RESET, DIO0>> for TrxError

Source§

fn from(error: Error<SPI, RESET, DIO0>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<SPI, RESET, DIO0> Freeze for Error<SPI, RESET, DIO0>
where RESET: Freeze, SPI: Freeze, DIO0: Freeze,

§

impl<SPI, RESET, DIO0> RefUnwindSafe for Error<SPI, RESET, DIO0>
where RESET: RefUnwindSafe, SPI: RefUnwindSafe, DIO0: RefUnwindSafe,

§

impl<SPI, RESET, DIO0> Send for Error<SPI, RESET, DIO0>
where RESET: Send, SPI: Send, DIO0: Send,

§

impl<SPI, RESET, DIO0> Sync for Error<SPI, RESET, DIO0>
where RESET: Sync, SPI: Sync, DIO0: Sync,

§

impl<SPI, RESET, DIO0> Unpin for Error<SPI, RESET, DIO0>
where RESET: Unpin, SPI: Unpin, DIO0: Unpin,

§

impl<SPI, RESET, DIO0> UnsafeUnpin for Error<SPI, RESET, DIO0>
where RESET: UnsafeUnpin, SPI: UnsafeUnpin, DIO0: UnsafeUnpin,

§

impl<SPI, RESET, DIO0> UnwindSafe for Error<SPI, RESET, DIO0>
where RESET: UnwindSafe, SPI: UnwindSafe, DIO0: 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.