Trait libp2p::swarm::NetworkBehaviourEventProcess [−][src]
When deriving NetworkBehaviour
this trait must by default be implemented for all the
possible event types generated by the inner behaviours.
You can opt out of this behaviour through #[behaviour(event_process = false)]
. See the
documentation of NetworkBehaviour
for details.
Required methods
pub fn inject_event(&mut self, event: TEvent)
[src]
Called when one of the fields of the type you’re deriving NetworkBehaviour
on generates
an event.
Implementors
impl<TEvent, TBehaviour> NetworkBehaviourEventProcess<TEvent> for Toggle<TBehaviour> where
TBehaviour: NetworkBehaviourEventProcess<TEvent>,
[src]
TBehaviour: NetworkBehaviourEventProcess<TEvent>,