NestedCapableRpcTarget

Trait NestedCapableRpcTarget 

Source
pub trait NestedCapableRpcTarget: RpcTarget {
    // Required methods
    fn create_sub_capability<'life0, 'life1, 'async_trait>(
        &'life0 self,
        capability_type: &'life1 str,
        config: Value,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_capability_types<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_capability_metadata<'life0, 'life1, 'async_trait>(
        &'life0 self,
        capability_type: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_child_capabilities<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn dispose_child_capability<'life0, 'life1, 'async_trait>(
        &'life0 self,
        capability_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Enhanced RPC target that can create nested capabilities

Required Methods§

Source

fn create_sub_capability<'life0, 'life1, 'async_trait>( &'life0 self, capability_type: &'life1 str, config: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a sub-capability

Source

fn list_capability_types<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List available capability types

Source

fn get_capability_metadata<'life0, 'life1, 'async_trait>( &'life0 self, capability_type: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get capability metadata

Source

fn list_child_capabilities<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all child capabilities

Source

fn dispose_child_capability<'life0, 'life1, 'async_trait>( &'life0 self, capability_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dispose of a child capability

Implementors§