pub enum Error<T, R> {
Transmit(T),
Receive(R),
InvalidFrame,
UnknownFrameKind,
UnexpectedEOF,
}Variants§
Trait Implementations§
source§impl<T: PartialEq, R: PartialEq> PartialEq<Error<T, R>> for Error<T, R>
impl<T: PartialEq, R: PartialEq> PartialEq<Error<T, R>> for Error<T, R>
impl<T: Eq, R: Eq> Eq for Error<T, R>
impl<T, R> StructuralEq for Error<T, R>
impl<T, R> StructuralPartialEq for Error<T, R>
Auto Trait Implementations§
impl<T, R> RefUnwindSafe for Error<T, R>where R: RefUnwindSafe, T: RefUnwindSafe,
impl<T, R> Send for Error<T, R>where R: Send, T: Send,
impl<T, R> Sync for Error<T, R>where R: Sync, T: Sync,
impl<T, R> Unpin for Error<T, R>where R: Unpin, T: Unpin,
impl<T, R> UnwindSafe for Error<T, R>where R: UnwindSafe, T: 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