Struct tor_linkspec::TransportId
source · [−]pub struct TransportId(_);Expand description
Identify a type of Transport.
If this crate is compiled with the pt-client feature, this type can
support pluggable transports; otherwise, only the built-in transport type is
supported.
Implementations
sourceimpl TransportId
impl TransportId
sourcepub fn is_builtin(&self) -> bool
pub fn is_builtin(&self) -> bool
Return true if this is the built-in transport.
Trait Implementations
sourceimpl Clone for TransportId
impl Clone for TransportId
sourcefn clone(&self) -> TransportId
fn clone(&self) -> TransportId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TransportId
impl Debug for TransportId
sourceimpl Default for TransportId
impl Default for TransportId
sourcefn default() -> TransportId
fn default() -> TransportId
Returns the “default value” for a type. Read more
sourceimpl Display for TransportId
impl Display for TransportId
sourceimpl FromStr for TransportId
impl FromStr for TransportId
sourceimpl Hash for TransportId
impl Hash for TransportId
sourceimpl PartialEq<TransportId> for TransportId
impl PartialEq<TransportId> for TransportId
sourcefn eq(&self, other: &TransportId) -> bool
fn eq(&self, other: &TransportId) -> bool
impl Eq for TransportId
impl StructuralEq for TransportId
impl StructuralPartialEq for TransportId
Auto Trait Implementations
impl RefUnwindSafe for TransportId
impl Send for TransportId
impl Sync for TransportId
impl Unpin for TransportId
impl UnwindSafe for TransportId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more