pub struct BuilderWithStart { /* private fields */ }
Expand description
Implementations§
Source§impl BuilderWithStart
impl BuilderWithStart
Sourcepub fn with_end_datetime<TZ: TimeZone>(
self,
datetime: DateTime<TZ>,
) -> BuilderWithEnd
pub fn with_end_datetime<TZ: TimeZone>( self, datetime: DateTime<TZ>, ) -> BuilderWithEnd
Sets the end date/time of the ClockTimer. ClockTimer will run until this time is passed. A tick will be emitted if the last tick is equal to the end time.
Sourcepub fn with_duration(self, duration: TimeDelta) -> BuilderWithEnd
pub fn with_duration(self, duration: TimeDelta) -> BuilderWithEnd
Sets a duration to run this ClockTimer for. Internally, the end time is calculated and stored based on start time and the provided duration.
Auto Trait Implementations§
impl Freeze for BuilderWithStart
impl RefUnwindSafe for BuilderWithStart
impl Send for BuilderWithStart
impl Sync for BuilderWithStart
impl Unpin for BuilderWithStart
impl UnwindSafe for BuilderWithStart
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