Trait ModuleEventCallback
Source pub trait ModuleEventCallback {
// Provided methods
fn on_message(
&mut self,
message: IotHubMessage,
) -> IoTHubMessageDispositionResult { ... }
fn on_module_twin(
&mut self,
state: IotHubDeviceTwinUpdateState,
data: &[u8],
) { ... }
fn on_module_method(
&mut self,
method_name: &str,
payload: &[u8],
) -> Result<Vec<u8>, IotError> { ... }
fn on_input_message(
&mut self,
input_name: &str,
message: IotHubMessage,
) -> IoTHubMessageDispositionResult { ... }
fn on_connection_status(
&mut self,
status: ConnectionStatus,
reason: ConnectionStatusReason,
) { ... }
fn on_confirmation(&mut self, result: Result<(), IotError>) { ... }
}