Skip to main content

ResourceEventHandler

Trait ResourceEventHandler 

Source
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§

Source

fn on_resource_loading( &self, _noti_type: NotificationType, _detail: ResourceLoadingDetail, )

Called when a resource loading event occurs.

Source

fn on_unknown(&self, _msg: &str, _details: &Value)

Called when an unknown notification is received.

Implementors§