pub enum TcpError {
TooShort {
id: Option<u16>,
expected: usize,
actual: usize,
},
IO {
id: Option<u16>,
error: Error,
},
}
Expand description
An error that can occur when reading a DNS TCP message.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpError
impl !RefUnwindSafe for TcpError
impl Send for TcpError
impl Sync for TcpError
impl Unpin for TcpError
impl !UnwindSafe for TcpError
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