pub struct Rt<A: Actor<S>, S: Send> { /* private fields */ }
Expand description

The actor’s local context

Implementations

Start traversing from the child with the provided dir name

Start traversing from the parent

Start traversing from the sibling with the provided dir name

Start traversing from the grand parent

Start traversing from the uncle

Create abortable future which will be aborted if the actor got shutdown signal.

Spawn the provided child and await till it’s initialized

Spawn the child, and returns its handle and initialized rx to check if it got initialized

Spawn the provided child and await till it’s initialized

Spawn the child, and returns its handle and initialized rx to check if it got initialized

Insert/Update microservice. Note: it will remove the children handles/joins if the provided service is stopped and store entry for it in inactive if does have directory

Remove the microservice microservice under the provided scope_id

Returns mutable reference to the actor’s inbox

Returns mutable reference to the actor’s handle

Returns immutable reference to the actor’s handle

Returns mutable reference to the actor’s supervisor handle

Returns immutable reference to the actor’s supervisor handle

Get the local service

Return the actor’s scope id

Return the actor’s depth

Return the actor parent’s scope id

Shutdown the scope under the provided scope_id

Check if microservices are stopped

Check if all microservices are _

Check if any microservice is _

Shutdown all the children within this actor context

Shutdown child using its scope_id

Shutdown all the children of a given type within this actor context

Add route for T

Remove route of T

Try to send message T, to the provided scope_i

Update the service status, and report to the supervisor and subscribers (if any)

Stop the microservices and update status to stopping

Create Overclock context

Register a metric

Add exposed resource

Expose resource as visible data

Get the highest resource’s scope id (at the most top level) for a given global visiable resource

Gets the lowest resource’s scope id for a given global visiable resource

Try to borrow resource and invoke fn_once

Try to borrow_mut the resource and invoke fn_once

Publish resource

Lookup for resource T under the provider scope_id

Remove the resource, and inform the interested dyn subscribers

Depends on resource T, it will await/block till the resource is available

Link to resource, which will await till it’s available. NOTE: similar to depends_on, but only shutdown self actor if the resource got dropped hard_link: if shutdown the subscriber when the publisher publishes a new copy

Depends on dynamic Resource T

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.