INNER CODE UNIT · Rust

handle_established_outbound_connection

qaul/qaul.net · rust/libp2p_modules/qaul_messaging/src/lib.rs:118

    fn handle_established_outbound_connection(
        &mut self,
        _connection_id: libp2p::swarm::ConnectionId,
        _peer: libp2p::PeerId,
        _addr: &Multiaddr,
        _role_override: libp2p::core::Endpoint,
        _port_use: PortUse,
    ) -> Result<libp2p::swarm::THandler<Self>, libp2p::swarm::ConnectionDenied> {
        Ok(Default::default())
    }

    /// This callback function informs the behaviour about an event from Swarm.
    /// For documentation please see:
    /// https://docs.rs/libp2p/latest/libp2p/swarm/trait.NetworkBehaviour.html#tymethod.on_swarm_event
    fn on_swarm_event(&mut self, _event: libp2p::swarm::FromSwarm) {}
}

/// Transmission between the `OneShotHandler` of the protocols handler

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…