Trait cfg_traits::StatusNotificationHook
source · pub trait StatusNotificationHook {
type Id;
type Status;
type Error: Debug;
// Required method
fn notify_status_change(
id: Self::Id,
status: Self::Status
) -> Result<(), Self::Error>;
}
Expand description
Trait to transmit a change of status for anything uniquely identifiable.
NOTE: The main use case to handle asynchronous operations.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.