libp2p_core_derive

Derive Macro NetworkBehaviour

Source
#[derive(NetworkBehaviour)]
{
    // Attributes available to this derive:
    #[behaviour]
}
Expand description

Generates a delegating NetworkBehaviour implementation for the struct this is used for. See the trait documentation for better description.