sc_network::service::traits

Trait NotificationConfig

Source
pub trait NotificationConfig: Debug {
    // Required methods
    fn set_config(&self) -> &SetConfig;
    fn protocol_name(&self) -> &ProtocolName;
}
Expand description

Trait defining the required functionality from a notification protocol configuration.

Required Methods§

Source

fn set_config(&self) -> &SetConfig

Get access to the SetConfig of the notification protocol.

Source

fn protocol_name(&self) -> &ProtocolName

Get protocol name.

Implementors§