pub struct Socks5Detector;Expand description
SOCKS5 protocol detector.
Checks if the first byte is 0x05 (SOCKS5 version).
Trait Implementations§
Source§impl ProtocolDetector for Socks5Detector
impl ProtocolDetector for Socks5Detector
Source§fn id(&self) -> ProtocolId
fn id(&self) -> ProtocolId
Returns the unique identifier for the protocol this detector handles.
Auto Trait Implementations§
impl Freeze for Socks5Detector
impl RefUnwindSafe for Socks5Detector
impl Send for Socks5Detector
impl Sync for Socks5Detector
impl Unpin for Socks5Detector
impl UnsafeUnpin for Socks5Detector
impl UnwindSafe for Socks5Detector
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