pub enum UdpHeaderError {
AddrError(AddrError),
ToTargetAddr(Error),
ReadingError(Error),
GarbageInReserved,
}Variants§
Trait Implementations§
Source§impl Debug for UdpHeaderError
impl Debug for UdpHeaderError
Source§impl Display for UdpHeaderError
impl Display for UdpHeaderError
Source§impl Error for UdpHeaderError
impl Error for UdpHeaderError
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()
Source§impl From<AddrError> for UdpHeaderError
impl From<AddrError> for UdpHeaderError
Source§impl From<UdpHeaderError> for SocksError
impl From<UdpHeaderError> for SocksError
Source§fn from(source: UdpHeaderError) -> Self
fn from(source: UdpHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<UdpHeaderError> for SocksServerError
impl From<UdpHeaderError> for SocksServerError
Source§fn from(source: UdpHeaderError) -> Self
fn from(source: UdpHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UdpHeaderError
impl !RefUnwindSafe for UdpHeaderError
impl Send for UdpHeaderError
impl Sync for UdpHeaderError
impl Unpin for UdpHeaderError
impl !UnwindSafe for UdpHeaderError
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