Trait RpcTarget
Source pub trait RpcTarget:
Send
+ Sync
+ Debug {
// Required methods
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
args: Vec<Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_property<'life0, 'life1, 'async_trait>(
&'life0 self,
property: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Call a method on this capability
Get a property from this capability