pub struct ResumePending {
pub notify: Arc<Notify>,
pub answer: Option<Value>,
}Expand description
Entry for a task suspended via query_senior, waiting to be resumed.
The Notify + answer: Option<Value> form (rather than a oneshot
channel) is deliberate: the answer stays inside EngineState even if
the caller (an Operator) detaches and reattaches, so it can pull
the answer out via await_resume after reattach.
Fields§
§notify: Arc<Notify>Wakes any await_resume waiter once answer is set.
answer: Option<Value>The stored answer, once resume has been called for this key.
Implementations§
Source§impl ResumePending
impl ResumePending
Trait Implementations§
Source§impl Clone for ResumePending
impl Clone for ResumePending
Source§fn clone(&self) -> ResumePending
fn clone(&self) -> ResumePending
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResumePending
impl Debug for ResumePending
Auto Trait Implementations§
impl Freeze for ResumePending
impl RefUnwindSafe for ResumePending
impl Send for ResumePending
impl Sync for ResumePending
impl Unpin for ResumePending
impl UnsafeUnpin for ResumePending
impl UnwindSafe for ResumePending
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more