pub struct ProcActorParams {
pub proc: Proc,
pub world_id: WorldId,
pub system_actor_ref: ActorRef<SystemActor>,
pub bootstrap_channel_addr: ChannelAddr,
pub local_addr: ChannelAddr,
pub state_watch: Sender<ProcState>,
pub supervisor_actor_ref: ActorRef<ProcSupervisor>,
pub supervision_update_interval: Duration,
pub labels: HashMap<String, String>,
pub lifecycle_mode: ProcLifecycleMode,
}
Expand description
Parameters for managing the proc.
Fields§
§proc: Proc
The proc that is managed by this actor.
world_id: WorldId
The system world to which this proc belongs.
system_actor_ref: ActorRef<SystemActor>
Reference to the system actor that is managing this proc.
bootstrap_channel_addr: ChannelAddr
The channel address used to communicate with the system actor that manages this proc. This is passed through so that the proc can spawn sibling procs.
local_addr: ChannelAddr
The local address of this proc actor. This is used by the proc actor to register the proc with the system actor.
state_watch: Sender<ProcState>
Watch into which the proc’s state is published.
supervisor_actor_ref: ActorRef<ProcSupervisor>
Reference to supervisor.
supervision_update_interval: Duration
Interval of reporting supervision status to the system actor.
labels: HashMap<String, String>
Arbitrary labels for the proc. They can be used later to query proc(s) using system snapshot api.
lifecycle_mode: ProcLifecycleMode
Proc lifecycle management mode.
If a proc is not managed
- it will not be stopped when system shutdowns.
- it will not be captured by system snapshot.
Not being managed is useful for procs that runs on the client side, which might need to stay around for a while after the system is gone.
Trait Implementations§
Source§impl Clone for ProcActorParams
impl Clone for ProcActorParams
Source§fn clone(&self) -> ProcActorParams
fn clone(&self) -> ProcActorParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ProcActorParams
impl !RefUnwindSafe for ProcActorParams
impl Send for ProcActorParams
impl Sync for ProcActorParams
impl Unpin for ProcActorParams
impl !UnwindSafe for ProcActorParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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