pub struct ServiceRunner(/* private fields */);
Expand description
Keeps track of running services.
Exposes information about crashed services.
Implementations§
source§impl ServiceRunner
impl ServiceRunner
sourcepub fn start<S: Service>(&mut self, service: S) -> Addr<S::Interface>
pub fn start<S: Service>(&mut self, service: S) -> Addr<S::Interface>
Starts a service and starts tracking its join handle, exposing an Addr for message passing.
sourcepub fn start_with<S: Service>(&mut self, service: S, rx: Receiver<S::Interface>)
pub fn start_with<S: Service>(&mut self, service: S, rx: Receiver<S::Interface>)
Starts a service and starts tracking its join handle, given a predefined receiver.
Trait Implementations§
source§impl Debug for ServiceRunner
impl Debug for ServiceRunner
source§impl Default for ServiceRunner
impl Default for ServiceRunner
source§fn default() -> ServiceRunner
fn default() -> ServiceRunner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ServiceRunner
impl !RefUnwindSafe for ServiceRunner
impl Send for ServiceRunner
impl Sync for ServiceRunner
impl Unpin for ServiceRunner
impl !UnwindSafe for ServiceRunner
Blanket Implementations§
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
Mutably borrows from an owned value. Read more