Struct stateroom_server::ServiceActor
source · [−]pub struct ServiceActor<J: StateroomService + Send + Sync + 'static> { /* private fields */ }Implementations
sourceimpl<J: StateroomService + Send + Sync + 'static + Unpin> ServiceActor<J>
impl<J: StateroomService + Send + Sync + 'static + Unpin> ServiceActor<J>
pub fn new(
ctx: &Context<Self>,
service_factory: impl StateroomServiceFactory<ServiceActorContext, Service = J>,
recipient: Recipient<MessageFromServer>
) -> Option<Self>
Trait Implementations
sourceimpl<J: StateroomService + Send + Sync + 'static + Unpin> Actor for ServiceActor<J>
impl<J: StateroomService + Send + Sync + 'static + Unpin> Actor for ServiceActor<J>
type Context = Context<ServiceActor<J>>
type Context = Context<ServiceActor<J>>
Actor execution context type
sourcefn stopping(&mut self, _ctx: &mut Self::Context) -> Running
fn stopping(&mut self, _ctx: &mut Self::Context) -> Running
Called after an actor is in Actor::Stopping state. Read more
sourcefn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
sourcefn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
Start a new asynchronous actor, returning its address. Read more
sourceimpl<J: StateroomService + Send + Sync + 'static + Unpin> Handler<MessageFromClient> for ServiceActor<J>
impl<J: StateroomService + Send + Sync + 'static + Unpin> Handler<MessageFromClient> for ServiceActor<J>
Auto Trait Implementations
impl<J> RefUnwindSafe for ServiceActor<J> where
J: RefUnwindSafe,
impl<J> Send for ServiceActor<J>
impl<J> Sync for ServiceActor<J>
impl<J> Unpin for ServiceActor<J> where
J: Unpin,
impl<J> UnwindSafe for ServiceActor<J> where
J: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more