pub struct Scheduler { /* private fields */ }Implementations§
Source§impl Scheduler
impl Scheduler
Sourcepub async fn start<T: Notifiable + 'static>(&self, task: T)
pub async fn start<T: Notifiable + 'static>(&self, task: T)
start the scheduler
Sourcepub fn get_cancel(&self) -> CancellationToken
pub fn get_cancel(&self) -> CancellationToken
get the cancel token
Auto Trait Implementations§
impl Freeze for Scheduler
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl UnwindSafe for Scheduler
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