Struct aurum_actors::core::Node [−][src]
pub struct Node<U: UnifiedType> { /* fields omitted */ }
Expand description
Spawns actors and manages system-wide information.
The Node
accessible from every actor it spawns through that actor’s
ActorContext
. It contains references to its configuration,
asynchronous runtime, registry and logger. To create a Node
, create a NodeConfig
, set
the fields and pass it to new
or new_sync
associated functions.
Implementations
Creates a new Node
in a synchronous context. Panics if called from an asynchronous
context.
Creates a new Node
.
pub fn schedule<F>(&self, delay: Duration, op: F) -> JoinHandle<()> where
F: 'static + Send + FnOnce(),
pub fn schedule_local_msg<T: Send + 'static>(
&self,
delay: Duration,
actor: LocalRef<T>,
msg: T
) -> JoinHandle<bool>
pub fn spawn<S, A>(
&self,
double: bool,
actor: A,
name: String,
register: bool
) -> ActorRef<U, S> where
U: Case<S>,
S: RootMessage<U>,
A: Actor<U, S> + Send + 'static,
pub fn spawn_timeout<S, A>(
&self,
actor: A,
name: String,
register: bool,
timeout: Duration
) -> ActorRef<U, S> where
U: Case<S>,
S: RootMessage<U>,
A: TimeoutActor<U, S> + Send + 'static,
pub async fn udp_select(
&self,
socket: &Socket,
ser: &Arc<UdpSerial>,
mode: FailureMode,
fail_map: &FailureConfigMap
)
Trait Implementations
Auto Trait Implementations
impl<U> !RefUnwindSafe for Node<U>
impl<U> !UnwindSafe for Node<U>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub unsafe fn to_subset_unchecked(&self) -> SS
pub unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V