pub struct ScheduleEntry {
pub name: Option<String>,
pub id: ScheduleEntryId,
/* private fields */
}Expand description
Entry associated with callback
Fields§
§name: Option<String>The assigned name of the entry for debugging purposes
id: ScheduleEntryIdEntry Id
Implementations§
Source§impl ScheduleEntry
impl ScheduleEntry
Sourcepub fn with_interval<I, F>(
interval: Duration,
initial_delay: I,
name: Option<String>,
callback: F,
) -> ScheduleEntry
pub fn with_interval<I, F>( interval: Duration, initial_delay: I, name: Option<String>, callback: F, ) -> ScheduleEntry
Creates an entry to run the callback repeatedly with a fixed delay
Trait Implementations§
Source§impl Clone for ScheduleEntry
impl Clone for ScheduleEntry
Source§fn clone(&self) -> ScheduleEntry
fn clone(&self) -> ScheduleEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleEntry
impl Debug for ScheduleEntry
Source§impl Hash for ScheduleEntry
impl Hash for ScheduleEntry
Source§impl Ord for ScheduleEntry
impl Ord for ScheduleEntry
Source§impl PartialEq for ScheduleEntry
impl PartialEq for ScheduleEntry
Source§impl PartialOrd for ScheduleEntry
impl PartialOrd for ScheduleEntry
impl Eq for ScheduleEntry
Auto Trait Implementations§
impl Freeze for ScheduleEntry
impl !RefUnwindSafe for ScheduleEntry
impl Send for ScheduleEntry
impl Sync for ScheduleEntry
impl Unpin for ScheduleEntry
impl !UnwindSafe for ScheduleEntry
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