Struct network::peer_manager::ConnectionRequestSender [−][src]
pub struct ConnectionRequestSender { /* fields omitted */ }Expand description
Convenience wrapper which makes it easy to issue connection requests and await the responses from PeerManager.
Implementations
Construct a new ConnectionRequestSender with a raw diem_channel::Sender
pub async fn dial_peer(
&self,
peer: PeerId,
addr: NetworkAddress
) -> Result<(), PeerManagerError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConnectionRequestSender
impl Send for ConnectionRequestSender
impl Sync for ConnectionRequestSender
impl Unpin for ConnectionRequestSender
impl UnwindSafe for ConnectionRequestSender
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self