[][src]Struct protosocks::UserPassRepr

pub struct UserPassRepr {
    pub uname: String,
    pub passwd: String,
}

A high-level representation of a Request packet.

Fields

uname: Stringpasswd: String

Implementations

impl RequestRepr[src]

pub fn parse<T: AsRef<[u8]> + ?Sized>(
    packet: &RequestPacket<&T>
) -> Result<RequestRepr, Error>
[src]

Parse a packet and return a high-level representation.

pub fn buffer_len(&self) -> usize[src]

Return the length of that will be emitted from this high-level representation.

pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut RequestPacket<T>)[src]

Emit a high-level representation into a packet.

Trait Implementations

impl Clone for RequestRepr[src]

impl Debug for RequestRepr[src]

impl Eq for RequestRepr[src]

impl PartialEq<RequestRepr> for RequestRepr[src]

impl StructuralEq for RequestRepr[src]

impl StructuralPartialEq for RequestRepr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.