Struct socks5_impl::protocol::UdpHeader
source · pub struct UdpHeader {
pub frag: u8,
pub address: Address,
}Expand description
SOCKS5 UDP packet header
+-----+------+------+----------+----------+----------+
| RSV | FRAG | ATYP | DST.ADDR | DST.PORT | DATA |
+-----+------+------+----------+----------+----------+
| 2 | 1 | 1 | Variable | 2 | Variable |
+-----+------+------+----------+----------+----------+
Fields§
§frag: u8§address: AddressImplementations§
Trait Implementations§
source§impl AsyncStreamOperation for UdpHeader
impl AsyncStreamOperation for UdpHeader
fn retrieve_from_async_stream<'life0, 'async_trait, R>( r: &'life0 mut R ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where R: AsyncRead + Unpin + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,
fn write_to_async_stream<'life0, 'life1, 'async_trait, W>( &'life0 self, w: &'life1 mut W ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where W: AsyncWrite + Unpin + Send + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for UdpHeader
impl Send for UdpHeader
impl Sync for UdpHeader
impl Unpin for UdpHeader
impl UnwindSafe for UdpHeader
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