Struct ya_service_bus::actix_rpc::Endpoint
source · pub struct Endpoint { /* private fields */ }
Implementations§
source§impl Endpoint
impl Endpoint
pub fn send<M: RpcMessage + Serialize + DeserializeOwned + Sync + Send + Unpin>( &self, msg: M ) -> impl Future<Output = Result<<RpcEnvelope<M> as Message>::Result, BusError>> + 'static
pub fn send_as<M: RpcMessage + Serialize + DeserializeOwned + Sync + Send + Unpin>( &self, caller: impl ToString, msg: M ) -> impl Future<Output = Result<<RpcEnvelope<M> as Message>::Result, BusError>> + 'static
pub fn push<M: RpcMessage + Serialize + DeserializeOwned + Sync + Send + Unpin>( &self, msg: M ) -> impl Future<Output = Result<(), BusError>> + 'static
pub fn push_as<M: RpcMessage + Serialize + DeserializeOwned + Sync + Send + Unpin>( &self, caller: impl ToString, msg: M ) -> impl Future<Output = Result<(), BusError>> + 'static
pub fn call_stream<M: RpcStreamMessage>( &self, msg: M ) -> impl Stream<Item = Result<Result<M::Item, M::Error>, BusError>>
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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