pub struct ServiceManager { /* private fields */ }
Implementations§
Source§impl ServiceManager
impl ServiceManager
pub fn new() -> Self
pub fn spawn_service_thread<S: Service + Send + 'static>( &mut self, service: S, ) -> Mailbox<S>
pub fn spawn_bounded_service_thread<S: Service + Send + 'static>( &mut self, service: S, channel_size: usize, ) -> BoundedMailbox<S>
pub fn spawn_bounded_task_service_thread_with_fn<S: TaskService + 'static, I: FnOnce() -> S + Send + 'static>( &mut self, init_fn: I, channel_size: usize, ) -> BoundedTaskMailbox<S>
pub fn stop(&mut self) -> Vec<StatsAggregator>
Trait Implementations§
Source§impl Default for ServiceManager
impl Default for ServiceManager
Source§fn default() -> ServiceManager
fn default() -> ServiceManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceManager
impl !RefUnwindSafe for ServiceManager
impl Send for ServiceManager
impl !Sync for ServiceManager
impl Unpin for ServiceManager
impl !UnwindSafe for ServiceManager
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