pub trait ResourceEventHandler: Send + Sync {
// Provided methods
fn on_resource_loading(
&self,
_noti_type: NotificationType,
_detail: ResourceLoadingDetail,
) { ... }
fn on_unknown(&self, _msg: &str, _details: &Value) { ... }
}Expand description
Trait for handling resource events.
Provided Methods§
Sourcefn on_resource_loading(
&self,
_noti_type: NotificationType,
_detail: ResourceLoadingDetail,
)
fn on_resource_loading( &self, _noti_type: NotificationType, _detail: ResourceLoadingDetail, )
Called when a resource loading event occurs.
Sourcefn on_unknown(&self, _msg: &str, _details: &Value)
fn on_unknown(&self, _msg: &str, _details: &Value)
Called when an unknown notification is received.