Enum gihex_hc_sr04::HsError
source · pub enum HsError {
OnWaitingEcho,
PulseTimeOut,
WrongState,
}
Expand description
Error variant for HC-SR04
Variants§
OnWaitingEcho
Error when HC-SR04 still waiting for soundwave back.
PulseTimeOut
Error when HC-SR04 waiting soundwave back too long (more than 38 ms).
WrongState
Error when HC_SR04 on wrong state.
Auto Trait Implementations§
impl RefUnwindSafe for HsError
impl Send for HsError
impl Sync for HsError
impl Unpin for HsError
impl UnwindSafe for HsError
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