MsgCallback

Type Alias MsgCallback 

Source
pub type MsgCallback<T> = dyn FnMut(Result<T, IpcError>) + Send;
Expand description

The callback type of our messages.

This is equivalent to [TypedRouterHandler][ipc_channel::router::TypedRouterHandler], except that this type is not wrapped in a Box. The callback will be wrapped in either a Box or an Arc, depending on if it is run on the router, or passed to the recipient.