[][src]Struct protosocks::RepRepr

pub struct RepRepr {
    pub ver: Ver,
    pub rep: Rep,
    pub addr: SocksAddr,
}

A high-level representation of a Rep packet.

Fields

ver: Verrep: Repaddr: SocksAddr

Implementations

impl RepRepr[src]

pub fn parse<T: AsRef<[u8]> + ?Sized>(
    packet: &Packet<&T>
) -> Result<RepRepr, 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 Packet<T>)[src]

Emit a high-level representation into a packet.

Trait Implementations

impl Clone for RepRepr[src]

impl Debug for RepRepr[src]

impl Decoder<RepRepr> for RepRepr[src]

impl Encoder<RepRepr> for RepRepr[src]

impl Eq for RepRepr[src]

impl PartialEq<RepRepr> for RepRepr[src]

impl StructuralEq for RepRepr[src]

impl StructuralPartialEq for RepRepr[src]

Auto Trait Implementations

impl RefUnwindSafe for RepRepr

impl Send for RepRepr

impl Sync for RepRepr

impl Unpin for RepRepr

impl UnwindSafe for RepRepr

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.