[−][src]Struct protosocks::MethodsRepr
A high-level representation of a Method Selection Request packet.
Fields
ver: Ver
methods: Vec<Method>
Implementations
impl RequestRepr
[src]
pub fn parse<T: AsRef<[u8]> + ?Sized>(
packet: &RequestPacket<&T>
) -> Result<RequestRepr, Error>
[src]
packet: &RequestPacket<&T>
) -> Result<RequestRepr, Error>
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]
fn clone(&self) -> RequestRepr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RequestRepr
[src]
impl Decoder<RequestRepr> for RequestRepr
[src]
impl Encoder<RequestRepr> for RequestRepr
[src]
impl Eq for RequestRepr
[src]
impl PartialEq<RequestRepr> for RequestRepr
[src]
fn eq(&self, other: &RequestRepr) -> bool
[src]
fn ne(&self, other: &RequestRepr) -> bool
[src]
impl StructuralEq for RequestRepr
[src]
impl StructuralPartialEq for RequestRepr
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestRepr
impl Send for RequestRepr
impl Sync for RequestRepr
impl Unpin for RequestRepr
impl UnwindSafe for RequestRepr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,