Struct socks5_impl::protocol::handshake::password_method::Response
source · pub struct Response {
pub status: bool,
}Expand description
SOCKS5 password handshake response
+-----+--------+
| VER | STATUS |
+-----+--------+
| 1 | 1 |
+-----+--------+
Fields§
§status: boolImplementations§
source§impl Response
impl Response
pub fn new(status: bool) -> Self
pub async fn rebuild_from_stream<R: AsyncRead + Unpin>( r: &mut R ) -> Result<Self>
pub async fn write_to_stream<W: AsyncWrite + Unpin>( &self, w: &mut W ) -> Result<()>
pub fn write_to_buf<B: BufMut>(&self, buf: &mut B)
pub fn serialized_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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