Trait ya_service_bus::RpcEndpoint
source · pub trait RpcEndpoint<T: RpcMessage>: Clone {
type Result: Future<Output = Result<<RpcEnvelope<T> as Message>::Result, Error>>;
// Required methods
fn send(&self, msg: T) -> Self::Result;
fn send_as(&self, caller: impl ToString + 'static, msg: T) -> Self::Result;
}
Required Associated Types§
Required Methods§
fn send(&self, msg: T) -> Self::Result
fn send_as(&self, caller: impl ToString + 'static, msg: T) -> Self::Result
Object Safety§
This trait is not object safe.