pub struct Scheduler { /* private fields */ }Implementations§
Source§impl Scheduler
impl Scheduler
Sourcepub fn with_timezone(timezone_hours: i8, timezone_minutes: i8) -> Self
pub fn with_timezone(timezone_hours: i8, timezone_minutes: i8) -> Self
create a new scheduler with specified timezone hours offset
Sourcepub fn with_timezone_minutes(timezone_minutes: i16) -> Self
pub fn with_timezone_minutes(timezone_minutes: i16) -> Self
create a new scheduler with timezone offset in minutes
Sourcepub async fn run<T: Notifiable + 'static>(&self, task: T)
pub async fn run<T: Notifiable + 'static>(&self, task: T)
run the task
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