Struct jormungandr::utils::fire_forget_scheduler::ScheduledTask
source · struct ScheduledTask<TID, WID, Data> {
tid: TID,
wid: WID,
data: Data,
}
Fields§
§tid: TID
§wid: WID
§data: Data
Implementations§
source§impl<TID, WID, Data> ScheduledTask<TID, WID, Data>where
TID: Clone + PartialEq,
WID: Clone + PartialEq,
impl<TID, WID, Data> ScheduledTask<TID, WID, Data>where TID: Clone + PartialEq, WID: Clone + PartialEq,
fn to_running(&self, timeout_key: Key) -> RunningTask<TID, WID>
fn to_timed_out(&self) -> TimedOutTask<TID, WID>
fn is_completed(&self, task: &TID) -> bool
fn is_scheduled(&self, scheduled: &Self) -> bool
fn update_data(&mut self, other: Self)
fn launch(self, launcher: impl Fn(TID, WID, Data))
Auto Trait Implementations§
impl<TID, WID, Data> RefUnwindSafe for ScheduledTask<TID, WID, Data>where Data: RefUnwindSafe, TID: RefUnwindSafe, WID: RefUnwindSafe,
impl<TID, WID, Data> Send for ScheduledTask<TID, WID, Data>where Data: Send, TID: Send, WID: Send,
impl<TID, WID, Data> Sync for ScheduledTask<TID, WID, Data>where Data: Sync, TID: Sync, WID: Sync,
impl<TID, WID, Data> Unpin for ScheduledTask<TID, WID, Data>where Data: Unpin, TID: Unpin, WID: Unpin,
impl<TID, WID, Data> UnwindSafe for ScheduledTask<TID, WID, Data>where Data: UnwindSafe, TID: UnwindSafe, WID: UnwindSafe,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
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