[][src]Struct apigpio::PigpiodError

pub struct PigpiodError(pub i32);

Wraps up a pigpiod error code

This is not an enum because if pigpiod is newer than apigpio, pigpiod might send error codes that apigpio does not understand. Specific error values can be checked for by comparing with values from the errors module.

Methods

impl PigpiodError[src]

pub fn strs(&self) -> Option<&'static str>[src]

Returns Some("PI_...","brief summary"), or None if the error code was not recognised.

Trait Implementations

impl Clone for PigpiodError[src]

impl Copy for PigpiodError[src]

impl Debug for PigpiodError[src]

impl Display for PigpiodError[src]

impl Eq for PigpiodError[src]

impl Hash for PigpiodError[src]

impl Ord for PigpiodError[src]

impl PartialEq<PigpiodError> for PigpiodError[src]

impl PartialOrd<PigpiodError> for PigpiodError[src]

impl StructuralEq for PigpiodError[src]

impl StructuralPartialEq for PigpiodError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Slottable for T where
    T: Copy
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.