Struct tonari_actor::SystemHandle
source · [−]pub struct SystemHandle { /* private fields */ }Expand description
Contains the “metadata” of the system, including information about the registry of actors currently existing within the system.
Implementations
sourceimpl SystemHandle
impl SystemHandle
sourcepub fn shutdown(&self) -> Result<(), ActorError>
pub fn shutdown(&self) -> Result<(), ActorError>
Stops all actors spawned by this system.
sourcepub fn subscribe_recipient<M: 'static, E: Event + Into<M>>(
&self,
recipient: Recipient<M>
)
pub fn subscribe_recipient<M: 'static, E: Event + Into<M>>(
&self,
recipient: Recipient<M>
)
Subscribe given recipient to events of type E. See Context::subscribe().
pub fn is_running(&self) -> bool
Trait Implementations
sourceimpl Clone for SystemHandle
impl Clone for SystemHandle
sourcefn clone(&self) -> SystemHandle
fn clone(&self) -> SystemHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for SystemHandle
impl Default for SystemHandle
sourcefn default() -> SystemHandle
fn default() -> SystemHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SystemHandle
impl Send for SystemHandle
impl Sync for SystemHandle
impl Unpin for SystemHandle
impl !UnwindSafe for SystemHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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