Struct jamsocket_server::ServiceActor [−][src]
pub struct ServiceActor<J: JamsocketService> { /* fields omitted */ }
Implementations
pub fn new(
ctx: &Context<Self>,
service_factory: impl JamsocketServiceFactory<ServiceActorContext, Service = J>,
recipient: Recipient<MessageFromServer>
) -> Option<Self>
Trait Implementations
type Context = Context<Self>
type Context = Context<Self>
Actor execution context type
Called after an actor is in Actor::Stopping
state. Read more
fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
fn 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
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
Construct and start a new asynchronous actor, returning its address. Read more
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
Start new actor in arbiter’s thread.
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>
impl<J> UnwindSafe for ServiceActor<J> where
J: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more