Struct tor_socksproto::msg::SocksHostname
source · pub struct SocksHostname(String);
Expand description
A hostname for use with SOCKS. It is limited in length.
Tuple Fields§
§0: String
Trait Implementations§
source§impl<'a> Arbitrary<'a> for SocksHostname
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for SocksHostname
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> ArbitraryResult<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> ArbitraryResult<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn size_hint(_depth: usize) -> (usize, Option<usize>)
fn size_hint(_depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl AsRef<str> for SocksHostname
impl AsRef<str> for SocksHostname
source§impl Clone for SocksHostname
impl Clone for SocksHostname
source§fn clone(&self) -> SocksHostname
fn clone(&self) -> SocksHostname
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SocksHostname
impl Debug for SocksHostname
source§impl PartialEq for SocksHostname
impl PartialEq for SocksHostname
source§fn eq(&self, other: &SocksHostname) -> bool
fn eq(&self, other: &SocksHostname) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<String> for SocksHostname
impl TryFrom<String> for SocksHostname
impl Eq for SocksHostname
impl StructuralPartialEq for SocksHostname
Auto Trait Implementations§
impl Freeze for SocksHostname
impl RefUnwindSafe for SocksHostname
impl Send for SocksHostname
impl Sync for SocksHostname
impl Unpin for SocksHostname
impl UnwindSafe for SocksHostname
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more