pub trait Rpc: Send + Sync {
// Required methods
fn call<'life0, 'life1, 'async_trait, M, R>(
&'life0 self,
ctx: Context,
end: &'life1 str,
msg: M,
pri: Priority,
) -> Pin<Box<dyn Future<Output = ProtocolResult<R>> + Send + 'async_trait>>
where M: MessageCodec + 'async_trait,
R: MessageCodec + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn response<'life0, 'life1, 'async_trait, M>(
&'life0 self,
cx: Context,
end: &'life1 str,
msg: M,
p: Priority,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where M: MessageCodec + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
fn call<'life0, 'life1, 'async_trait, M, R>(
&'life0 self,
ctx: Context,
end: &'life1 str,
msg: M,
pri: Priority,
) -> Pin<Box<dyn Future<Output = ProtocolResult<R>> + Send + 'async_trait>>where
M: MessageCodec + 'async_trait,
R: MessageCodec + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn response<'life0, 'life1, 'async_trait, M>(
&'life0 self,
cx: Context,
end: &'life1 str,
msg: M,
p: Priority,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>where
M: MessageCodec + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.