pub enum OneWireError<E> {
Other(E),
NoDevicePresent,
BusInUse,
BusUninitialized,
BusInvalidSpeed,
ShortCircuit,
Unimplemented,
InvalidCrc,
InvalidValue(&'static str),
}Expand description
One wire communication error type.
Variants§
Other(E)
Encapsulates the error type from the underlying hardware.
NoDevicePresent
Indicates that no device is present on the bus.
BusInUse
Indicates that the bus is busy, which may happen if a device is already communicating.
BusUninitialized
Indicates that the bus is not initialized, which may happen if the bus master has come out of a reset, but the 1-Wire port has not been configured.
BusInvalidSpeed
Indicates that the current bus speed is invalid for the operation.
ShortCircuit
Indicates that a short circuit was detected on the bus.
Unimplemented
Indicates that the operation is not implemented, such as reading a triplet when not supported.
InvalidCrc
Computed CRC of the ROM is invalid.
InvalidValue(&'static str)
Invalid value
Trait Implementations§
Source§impl<E: Debug> Debug for OneWireError<E>
impl<E: Debug> Debug for OneWireError<E>
Auto Trait Implementations§
impl<E> Freeze for OneWireError<E>where
E: Freeze,
impl<E> RefUnwindSafe for OneWireError<E>where
E: RefUnwindSafe,
impl<E> Send for OneWireError<E>where
E: Send,
impl<E> Sync for OneWireError<E>where
E: Sync,
impl<E> Unpin for OneWireError<E>where
E: Unpin,
impl<E> UnwindSafe for OneWireError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more