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