pub enum ProtocolError<E> {
UnexpectedResponse,
UnexpectedEof,
Communication(E),
}
Expand description
Error returned when DSCFG protocol fails.
Variants§
UnexpectedResponse
The response to the message wasn’t expected
UnexpectedEof
The stream has ended before a message could be fully decoded.
Communication(E)
Underlying communication error - e.g. I/O error.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for ProtocolError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ProtocolError<E>where
E: RefUnwindSafe,
impl<E> Send for ProtocolError<E>where
E: Send,
impl<E> Sync for ProtocolError<E>where
E: Sync,
impl<E> Unpin for ProtocolError<E>where
E: Unpin,
impl<E> UnwindSafe for ProtocolError<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