[][src]Macro kompact::ignore_requests

macro_rules! ignore_requests {
    ($port:ty, $component:ty) => { ... };
}

A macro that provides an empty implementation of the provided handler for the given $port on the given $component

Use this in components that do not require any treatment of requests on $port, for example where $port::Request is the uninhabited Never type.

Example

To ignore requests on a port TestPort for a component TestComponent, write: ignore_requests!(TestPort, TestComponent);