pub enum Response<'a> {
Success(&'a Address),
GeneralFailure,
ConnectionNotAllowed,
NetworkUnreachable,
HostUnreachable,
ConnectionRefused,
TTLExpired,
CommandNotSupported,
AddressTypeNotSupported,
Unassigned(u8),
}Expand description
§Response
+-----+-------+------+----------+----------+
| REP | RSV | ATYP | BND.ADDR | BND.PORT |
+-----+-------+------+----------+----------+
| 1 | X'00' | 1 | Variable | 2 |
+-----+-------+------+----------+----------+Variants§
Success(&'a Address)
GeneralFailure
ConnectionNotAllowed
NetworkUnreachable
HostUnreachable
ConnectionRefused
TTLExpired
CommandNotSupported
AddressTypeNotSupported
Unassigned(u8)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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