pub struct PtTransportName(/* private fields */);
Expand description
The name of a Pluggable Transport protocol.
The name has been syntax-checked.
These names are used to identify the particular transport protocol, such as “obfs4” or “snowflake”. They match a name of a protocol that the transport binary knows how to provide to the name of a protocol that a bridge is configured to use.
Trait Implementations§
Source§impl AsRef<str> for PtTransportName
impl AsRef<str> for PtTransportName
Source§impl Clone for PtTransportName
impl Clone for PtTransportName
Source§fn clone(&self) -> PtTransportName
fn clone(&self) -> PtTransportName
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 PtTransportName
impl Debug for PtTransportName
Source§impl Default for PtTransportName
impl Default for PtTransportName
Source§fn default() -> PtTransportName
fn default() -> PtTransportName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PtTransportName
impl<'de> Deserialize<'de> for PtTransportName
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PtTransportName
impl Display for PtTransportName
Source§impl From<PtTransportName> for TransportId
Available on crate feature pt-client
only.
impl From<PtTransportName> for TransportId
Available on crate feature
pt-client
only.Source§fn from(name: PtTransportName) -> Self
fn from(name: PtTransportName) -> Self
Converts to this type from the input type.
Source§impl FromStr for PtTransportName
impl FromStr for PtTransportName
Source§impl Hash for PtTransportName
impl Hash for PtTransportName
Source§impl PartialEq for PtTransportName
impl PartialEq for PtTransportName
Source§impl Serialize for PtTransportNamewhere
Self: Display,
impl Serialize for PtTransportNamewhere
Self: Display,
Source§impl TryFrom<String> for PtTransportName
impl TryFrom<String> for PtTransportName
impl Eq for PtTransportName
impl StructuralPartialEq for PtTransportName
Auto Trait Implementations§
impl Freeze for PtTransportName
impl RefUnwindSafe for PtTransportName
impl Send for PtTransportName
impl Sync for PtTransportName
impl Unpin for PtTransportName
impl UnwindSafe for PtTransportName
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> AsUncased for T
impl<T> AsUncased for T
§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert
self
to an [UncasedStr
].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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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