#[allow(unused_imports)]
use crate::OneWireSearch;
#[derive(Debug)]
pub enum OneWireError<E> {
Other(E),
NoDevicePresent,
BusInUse,
BusUninitialized,
BusInvalidSpeed,
ShortCircuit,
Unimplemented,
InvalidCrc,
InvalidValue(&'static str),
}
impl<E> From<E> for OneWireError<E> {
fn from(other: E) -> Self {
Self::Other(other)
}
}