Macro plumber_rs::init_protocol[][src]

macro_rules! init_protocol {
    ($what:ident {$($actual:expr => $model:ident),*}) => { ... };
}

Initialize the protocol in the init function block.

The syntax is folloowing

init_protocol! {
     model_object {
         self.pipe_obj => pipe_in_protocol
     }
}

For details please read the protodef! doc