pub struct SubsystemHandle { /* private fields */ }Implementations§
Source§impl SubsystemHandle
impl SubsystemHandle
pub fn name(&self) -> &str
pub fn spawn<Err, F>( &self, name: impl AsRef<str>, subsys: impl FnOnce(SubsystemHandle) -> F + Send + 'static, ) -> SubsystemHandle
pub fn request_global_shutdown(&self)
pub fn request_local_shutdown(&self)
pub async fn shutdown_requested(&self)
pub fn is_shut_down(&self) -> bool
pub async fn join(&self)
Trait Implementations§
Source§impl Clone for SubsystemHandle
impl Clone for SubsystemHandle
Auto Trait Implementations§
impl Freeze for SubsystemHandle
impl RefUnwindSafe for SubsystemHandle
impl Send for SubsystemHandle
impl Sync for SubsystemHandle
impl Unpin for SubsystemHandle
impl UnwindSafe for SubsystemHandle
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