pub struct ServerHandle { /* private fields */ }
Expand description
Handle for a running system server.
Implementations§
Source§impl ServerHandle
impl ServerHandle
Sourcepub async fn stop(&self) -> Result<(), ActorError>
pub async fn stop(&self) -> Result<(), ActorError>
Stop the server. The user should join the handle after calling stop.
Sourcepub fn local_addr(&self) -> &ChannelAddr
pub fn local_addr(&self) -> &ChannelAddr
The local (bound) address of the server.
Sourcepub fn system_actor_handle(&self) -> &ActorHandle<SystemActor>
pub fn system_actor_handle(&self) -> &ActorHandle<SystemActor>
The system actor handle.
Trait Implementations§
Source§impl Debug for ServerHandle
impl Debug for ServerHandle
Source§impl IntoFuture for ServerHandle
A future implementation for actor handle used for joining. It is
forwarded to the underlying join handles.
impl IntoFuture for ServerHandle
A future implementation for actor handle used for joining. It is forwarded to the underlying join handles.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ServerHandle as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ServerHandle as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for ServerHandle
impl !RefUnwindSafe for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl !UnwindSafe for ServerHandle
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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