RegistrableCapability

Trait RegistrableCapability 

Source
pub trait RegistrableCapability: RpcTarget {
    // Provided methods
    fn name(&self) -> &str { ... }
    fn on_export(&self, _id: i64) { ... }
    fn on_import(&self, _id: i64) { ... }
    fn on_release(&self, _id: i64) { ... }
}
Expand description

Trait for capabilities that can be registered in the registry

Provided Methods§

Source

fn name(&self) -> &str

Get a display name for this capability (for debugging)

Source

fn on_export(&self, _id: i64)

Called when the capability is exported

Source

fn on_import(&self, _id: i64)

Called when the capability is imported

Source

fn on_release(&self, _id: i64)

Called when the capability is released

Implementors§