pub struct ActorContext { /* private fields */ }Trait Implementations§
Source§impl Bind<NetAddress> for ActorContext
impl Bind<NetAddress> for ActorContext
async fn bind( &mut self, args: BindArgs<NetAddress>, ) -> Result<(), ErrorOf<BindErrorKind>>
Source§impl Drop for ActorContext
impl Drop for ActorContext
Source§impl Fork for ActorContext
impl Fork for ActorContext
Source§impl InitDone for ActorContext
impl InitDone for ActorContext
Source§impl Linking for ActorContext
impl Linking for ActorContext
Source§impl Messaging for ActorContext
impl Messaging for ActorContext
fn address(&self) -> Address
async fn recv(&mut self) -> Result<Envelope, ErrorOf<RecvErrorKind>>
async fn close(&mut self)
fn send( &mut self, envelope: Envelope, ) -> impl Future<Output = Result<(), ErrorOf<SendErrorKind>>> + Send
fn forward( &mut self, to: Address, envelope: Envelope, ) -> impl Future<Output = Result<(), ErrorOf<SendErrorKind>>> + Send
Source§impl Quit for ActorContext
impl Quit for ActorContext
Source§impl Start<BoxedRunnable<ActorContext>> for ActorContext
impl Start<BoxedRunnable<ActorContext>> for ActorContext
fn spawn( &mut self, runnable: BoxedRunnable<Self>, link: bool, ) -> impl Future<Output = Result<Address, ErrorOf<SpawnErrorKind>>> + Send
fn start( &mut self, runnable: BoxedRunnable<Self>, link: bool, start_timeout: Duration, ) -> impl Future<Output = Result<Address, ErrorOf<StartErrorKind>>> + Send
Source§impl Stop for ActorContext
impl Stop for ActorContext
Auto Trait Implementations§
impl Freeze for ActorContext
impl !RefUnwindSafe for ActorContext
impl Send for ActorContext
impl Sync for ActorContext
impl Unpin for ActorContext
impl !UnwindSafe for ActorContext
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> 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more