pub struct MultithreadRuntimeHandle<A> { /* private fields */ }Expand description
Allows sending messages to a multithreaded actor runtime. Implements CanSend and CanSendAsync traits for the messages that the actor can handle.
Implementations§
Source§impl<A> MultithreadRuntimeHandle<A>where
A: 'static,
impl<A> MultithreadRuntimeHandle<A>where
A: 'static,
pub fn sender(&self) -> Arc<MultithreadRuntimeHandle<A>>
Trait Implementations§
Source§impl<A, M> CanSend<M> for MultithreadRuntimeHandle<A>
impl<A, M> CanSend<M> for MultithreadRuntimeHandle<A>
Source§impl<A, M, R> CanSendAsync<M, R> for MultithreadRuntimeHandle<A>
impl<A, M, R> CanSendAsync<M, R> for MultithreadRuntimeHandle<A>
fn send_async( &self, message: M, ) -> BoxFuture<'static, Result<R, AsyncSendError>>
Auto Trait Implementations§
impl<A> Freeze for MultithreadRuntimeHandle<A>
impl<A> !RefUnwindSafe for MultithreadRuntimeHandle<A>
impl<A> Send for MultithreadRuntimeHandle<A>
impl<A> Sync for MultithreadRuntimeHandle<A>
impl<A> Unpin for MultithreadRuntimeHandle<A>
impl<A> !UnwindSafe for MultithreadRuntimeHandle<A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<M, R, T> IntoAsyncSender<M, R> for Twhere
R: Send + 'static,
T: CanSendAsync<M, R>,
impl<M, R, T> IntoAsyncSender<M, R> for Twhere
R: Send + 'static,
T: CanSendAsync<M, R>,
Source§fn into_async_sender(self) -> AsyncSender<M, R>
fn into_async_sender(self) -> AsyncSender<M, R>
Convert an owned implementer into an
AsyncSender.Source§fn as_async_sender(self: &Arc<T>) -> AsyncSender<M, R>
fn as_async_sender(self: &Arc<T>) -> AsyncSender<M, R>
Convert a reference-counted implementer into an
AsyncSender.Source§impl<A, B> IntoMultiSender<B> for Awhere
B: MultiSenderFrom<A>,
impl<A, B> IntoMultiSender<B> for Awhere
B: MultiSenderFrom<A>,
fn as_multi_sender(self: &Arc<A>) -> B
fn into_multi_sender(self) -> B
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request