pub struct ScheduledTask {
pub time: DateTime<Utc>,
pub task: Task,
}Expand description
Represents a task that is scheduled to occur at a certain time.
Fieldsยง
ยงtime: DateTime<Utc>The scheduled time for the task.
task: TaskThe goal associated with the task.
Trait Implementationsยง
Sourceยงimpl Clone for ScheduledTask
impl Clone for ScheduledTask
Sourceยงfn clone(&self) -> ScheduledTask
fn clone(&self) -> ScheduledTask
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 ScheduledTask
impl Debug for ScheduledTask
Sourceยงimpl Default for ScheduledTask
impl Default for ScheduledTask
Sourceยงfn default() -> ScheduledTask
fn default() -> ScheduledTask
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl Hash for ScheduledTask
impl Hash for ScheduledTask
Sourceยงimpl PartialEq for ScheduledTask
impl PartialEq for ScheduledTask
impl Eq for ScheduledTask
impl StructuralPartialEq for ScheduledTask
Auto Trait Implementationsยง
impl Freeze for ScheduledTask
impl RefUnwindSafe for ScheduledTask
impl Send for ScheduledTask
impl Sync for ScheduledTask
impl Unpin for ScheduledTask
impl UnwindSafe for ScheduledTask
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request