pub struct ScheduledExecutorService { /* private fields */ }
Implementations§
Source§impl ScheduledExecutorService
impl ScheduledExecutorService
pub fn new() -> ScheduledExecutorService
pub fn new_with_config( thread_num: usize, thread_prefix: Option<impl Into<String>>, keep_alive: Duration, max_blocking_threads: usize, ) -> ScheduledExecutorService
pub fn schedule_at_fixed_rate<F>( &self, task: F, initial_delay: Option<Duration>, period: Duration, )
Source§impl ScheduledExecutorService
impl ScheduledExecutorService
pub fn shutdown(self)
pub fn shutdown_timeout(self, timeout: Duration)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ScheduledExecutorService
impl RefUnwindSafe for ScheduledExecutorService
impl Send for ScheduledExecutorService
impl Sync for ScheduledExecutorService
impl Unpin for ScheduledExecutorService
impl UnwindSafe for ScheduledExecutorService
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