Struct tor_linkspec::PtTransportName
source · pub struct PtTransportName(_);Expand description
Pluggable transport name
The name for a pluggable transport. The name has been syntax checked.
Trait Implementations§
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 PtTransportNamewhere
Self: FromStr,
<Self as FromStr>::Err: Display,
impl<'de> Deserialize<'de> for PtTransportNamewhere
Self: FromStr,
<Self as FromStr>::Err: Display,
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<PtTransportName> for PtTransportName
impl PartialEq<PtTransportName> for PtTransportName
source§fn eq(&self, other: &PtTransportName) -> bool
fn eq(&self, other: &PtTransportName) -> bool
source§impl Serialize for PtTransportNamewhere
Self: Display,
impl Serialize for PtTransportNamewhere
Self: Display,
source§impl TryFrom<String> for PtTransportName
impl TryFrom<String> for PtTransportName
§type Error = TransportIdError
type Error = TransportIdError
The type returned in the event of a conversion error.