pub struct ProxyReq<'a>(pub &'a Address);
Expand description
+––+—–+—––+——+–––––+–––––+ |VER | CMD | RSV | ATYP | DST.ADDR | DST.PORT | +––+—–+—––+——+–––––+–––––+ | 1 | 1 | X’00’ | 1 | Variable | 2 | +––+—–+—––+——+–––––+–––––+
Tuple Fields§
§0: &'a Address
Implementations§
Source§impl ProxyReq<'_>
impl ProxyReq<'_>
pub fn write_to_buf(&self, buf: &mut BytesMut) -> Result<usize, SerializeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProxyReq<'a>
impl<'a> RefUnwindSafe for ProxyReq<'a>
impl<'a> Send for ProxyReq<'a>
impl<'a> Sync for ProxyReq<'a>
impl<'a> Unpin for ProxyReq<'a>
impl<'a> UnwindSafe for ProxyReq<'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