pub struct Socks5UdpCodec;Implementations§
Trait Implementations§
Source§impl Clone for Socks5UdpCodec
impl Clone for Socks5UdpCodec
Source§impl Debug for Socks5UdpCodec
impl Debug for Socks5UdpCodec
Source§impl Decoder for Socks5UdpCodec
impl Decoder for Socks5UdpCodec
Source§type Item = Socks5UdpMessage
type Item = Socks5UdpMessage
The type of decoded frames.
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> StdResult<Option<Self::Item>, Self::Error>
fn decode( &mut self, buf: &mut BytesMut, ) -> StdResult<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for Socks5UdpCodec
impl Default for Socks5UdpCodec
Source§impl Encoder<(Bytes, TargetAddr<'static>)> for Socks5UdpCodec
impl Encoder<(Bytes, TargetAddr<'static>)> for Socks5UdpCodec
impl Eq for Socks5UdpCodec
Source§impl Hash for Socks5UdpCodec
impl Hash for Socks5UdpCodec
Source§impl Ord for Socks5UdpCodec
impl Ord for Socks5UdpCodec
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Socks5UdpCodec
impl PartialEq for Socks5UdpCodec
Source§impl PartialOrd for Socks5UdpCodec
impl PartialOrd for Socks5UdpCodec
impl StructuralPartialEq for Socks5UdpCodec
Auto Trait Implementations§
impl Freeze for Socks5UdpCodec
impl RefUnwindSafe for Socks5UdpCodec
impl Send for Socks5UdpCodec
impl Sync for Socks5UdpCodec
impl Unpin for Socks5UdpCodec
impl UnsafeUnpin for Socks5UdpCodec
impl UnwindSafe for Socks5UdpCodec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more