pub struct DefaultNestedCapableTarget { /* private fields */ }
Expand description
Default implementation of nested-capable RPC target
Implementations§
Trait Implementations§
Source§impl Debug for DefaultNestedCapableTarget
impl Debug for DefaultNestedCapableTarget
Source§impl NestedCapableRpcTarget for DefaultNestedCapableTarget
impl NestedCapableRpcTarget for DefaultNestedCapableTarget
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,
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,
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,
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§impl RpcTarget for DefaultNestedCapableTarget
impl RpcTarget for DefaultNestedCapableTarget
Auto Trait Implementations§
impl Freeze for DefaultNestedCapableTarget
impl !RefUnwindSafe for DefaultNestedCapableTarget
impl Send for DefaultNestedCapableTarget
impl Sync for DefaultNestedCapableTarget
impl Unpin for DefaultNestedCapableTarget
impl !UnwindSafe for DefaultNestedCapableTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more