pub enum ParseError<T> {
Transport(T),
Protocol(ProtocolError),
}Expand description
Type used to represent errors that can occur in parsing received commands over the binary API.
Variants§
Transport(T)
Protocol(ProtocolError)
Trait Implementations§
Source§impl<T: Debug> Debug for ParseError<T>
impl<T: Debug> Debug for ParseError<T>
Source§impl<T> From<ProtocolError> for ParseError<T>
impl<T> From<ProtocolError> for ParseError<T>
Source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for ParseError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParseError<T>where
T: RefUnwindSafe,
impl<T> Send for ParseError<T>where
T: Send,
impl<T> Sync for ParseError<T>where
T: Sync,
impl<T> Unpin for ParseError<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParseError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ParseError<T>where
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