pub enum UsbIpError {
ConnectionClosed,
PkgTooShort(usize),
InvalidCommand(u16),
StatusNotOk(u32),
}Expand description
The error type, used by this crate.
Variants§
ConnectionClosed
The connection closed unexpectedly.
PkgTooShort(usize)
A packet was received but it was shorter than the 48 bytes required to parse the header.
InvalidCommand(u16)
A received packet contained a command, that is unknown to the USBIP specification.
StatusNotOk(u32)
A received packet had a status field set to an unknown status value.
Trait Implementations§
Source§impl Clone for UsbIpError
impl Clone for UsbIpError
Source§fn clone(&self) -> UsbIpError
fn clone(&self) -> UsbIpError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsbIpError
impl Debug for UsbIpError
Source§impl Display for UsbIpError
impl Display for UsbIpError
Source§impl Error for UsbIpError
impl Error for UsbIpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UsbIpError
impl RefUnwindSafe for UsbIpError
impl Send for UsbIpError
impl Sync for UsbIpError
impl Unpin for UsbIpError
impl UnwindSafe for UsbIpError
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