Enum tor_linkspec::ChannelMethod
source · [−]pub enum ChannelMethod {
Direct(SocketAddr),
Pluggable(PtTarget),
}Expand description
The way to approach a single relay in order to open a channel.
For direct connections, this is simply an address. For connections via a pluggable transport, this includes information about the transport, and any address and settings information that transport requires.
Variants
Direct(SocketAddr)
Connect to the relay directly at a given address.
Pluggable(PtTarget)
Available on crate feature
pt-client only.Connect to a bridge relay via a pluggable transport.
Trait Implementations
sourceimpl Clone for ChannelMethod
impl Clone for ChannelMethod
sourcefn clone(&self) -> ChannelMethod
fn clone(&self) -> ChannelMethod
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 moreAuto Trait Implementations
impl RefUnwindSafe for ChannelMethod
impl Send for ChannelMethod
impl Sync for ChannelMethod
impl Unpin for ChannelMethod
impl UnwindSafe for ChannelMethod
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