pub enum Error<E> {
I2c(E),
Timeout,
NegotiationFailed,
InvalidParameter,
NotInitialized,
ProtectionFault,
}Expand description
Error types for AP33772S operations
Variants§
I2c(E)
I2C communication error
Timeout
PD negotiation timeout
NegotiationFailed
PD negotiation failed
InvalidParameter
Invalid parameter
NotInitialized
Device not initialized
ProtectionFault
Protection fault occurred
Trait Implementations§
impl<E: Copy> Copy for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<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