[−][src]Enum hx711::Error
Error type for Input and Output errors on digital pins.
For some HALs, the digital input and output pins can never fail.
If you use the driver with such a crate, you can use .into_ok()
on all results
instead of .unwrap()
or .expect()
.
Variants
Error while reading a digital pin
Error while writing a digital pin
Trait Implementations
Auto Trait Implementations
impl<EIN, EOUT> Send for Error<EIN, EOUT> where
EIN: Send,
EOUT: Send,
EIN: Send,
EOUT: Send,
impl<EIN, EOUT> Sync for Error<EIN, EOUT> where
EIN: Sync,
EOUT: Sync,
EIN: Sync,
EOUT: Sync,
impl<EIN, EOUT> Unpin for Error<EIN, EOUT> where
EIN: Unpin,
EOUT: Unpin,
EIN: Unpin,
EOUT: Unpin,
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, 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>,