Trait ChanTarget

Source
pub trait ChanTarget:
    HasRelayIds
    + HasAddrs
    + HasChanMethod {
    // Provided method
    fn display_chan_target(&self) -> DisplayChanTarget<'_, Self>
       where Self: Sized { ... }
}
Expand description

Information about a Tor relay used to connect to it.

Anything that implements ‘ChanTarget’ can be used as the identity of a relay for the purposes of launching a new channel.

Provided Methods§

Source

fn display_chan_target(&self) -> DisplayChanTarget<'_, Self>
where Self: Sized,

Return a reference to this object suitable for formatting its ChanTarget-specific members.

The display format is not exhaustive, but tries to give enough information to identify which channel target we’re talking about.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§