Trait TestNode

Source
pub trait TestNode {
    // Required methods
    fn peer_id(&self) -> PeerId;
    fn libp2p_port(&self) -> u16;

    // Provided methods
    fn rust_dial_opts(&self, host: IpAddr) -> P2pConnectionOutgoingInitOpts { ... }
    fn libp2p_dial_opts(&self, host: IpAddr) -> Multiaddr { ... }
}

Required Methods§

Source

fn peer_id(&self) -> PeerId

Source

fn libp2p_port(&self) -> u16

Provided Methods§

Source

fn rust_dial_opts(&self, host: IpAddr) -> P2pConnectionOutgoingInitOpts

Source

fn libp2p_dial_opts(&self, host: IpAddr) -> Multiaddr

Implementors§