referrerpolicy=no-referrer-when-downgrade

Trait polkadot_node_subsystem::MapSubsystem

pub trait MapSubsystem<T> {
    type Output;

    // Required method
    fn map_subsystem(&self, sub: T) -> Self::Output;
}
Expand description

A helper trait to map a subsystem to smth. else.

Required Associated Types§

type Output

The output type of the mapping.

Required Methods§

fn map_subsystem(&self, sub: T) -> Self::Output

Consumes a T per subsystem, and maps it to Self::Output.

Implementors§

§

impl<F, T, U> MapSubsystem<T> for F
where F: Fn(T) -> U,

§

type Output = U