[−][src]Struct apigpio::PigpiodError
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]
fn clone(&self) -> PigpiodError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PigpiodError
[src]
fn cmp(&self, other: &PigpiodError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PigpiodError> for PigpiodError
[src]
fn eq(&self, other: &PigpiodError) -> bool
[src]
fn ne(&self, other: &PigpiodError) -> bool
[src]
impl PartialOrd<PigpiodError> for PigpiodError
[src]
fn partial_cmp(&self, other: &PigpiodError) -> Option<Ordering>
[src]
fn lt(&self, other: &PigpiodError) -> bool
[src]
fn le(&self, other: &PigpiodError) -> bool
[src]
fn gt(&self, other: &PigpiodError) -> bool
[src]
fn ge(&self, other: &PigpiodError) -> bool
[src]
impl StructuralEq for PigpiodError
[src]
impl StructuralPartialEq for PigpiodError
[src]
Auto Trait Implementations
impl RefUnwindSafe for PigpiodError
impl Send for PigpiodError
impl Sync for PigpiodError
impl Unpin for PigpiodError
impl UnwindSafe for PigpiodError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,