pub struct Context<'a> {
pub mav: bool,
pub user: &'a dyn Any,
}
Expand description
Context in which to execute a message.
Useful when multiple sources can execute commands.
Fields§
§mav: bool
Does output buffer contain data?
user: &'a dyn Any
User context data.
Do not use this to pass application data! Use traits instead. It’s only intended to pass along data from whatever context is running a command.
For example: User authentication information if the call comes from an authenticated interface or port number if the call comes from a serial port.