pub struct ServiceThreadTokio { /* private fields */ }Implementations§
Source§impl ServiceThreadTokio
impl ServiceThreadTokio
pub fn new(name: String, runnable: Arc<Mutex<dyn Runnable>>) -> Self
pub fn start(&mut self)
pub fn make_stop(&mut self)
pub fn is_stopped(&self) -> bool
pub async fn shutdown(&mut self)
pub async fn shutdown_interrupt(&mut self, interrupt: bool)
pub fn wakeup(&self)
pub async fn wait_for_running(&self, interval: u64)
Auto Trait Implementations§
impl Freeze for ServiceThreadTokio
impl !RefUnwindSafe for ServiceThreadTokio
impl Send for ServiceThreadTokio
impl Sync for ServiceThreadTokio
impl Unpin for ServiceThreadTokio
impl !UnwindSafe for ServiceThreadTokio
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