pub(crate) struct PendingMethodCall {
stream: Option<MessageStream>,
serial: NonZeroU32,
}Expand description
A method call whose completion can be awaited or joined with other streams.
This is useful for cache population method calls, where joining the [JoinableStream] with
an update signal stream can be used to ensure that cache updates are not overwritten by a cache
population whose task is scheduled later.
Fields§
§stream: Option<MessageStream>§serial: NonZeroU32Trait Implementations§
Source§impl Debug for PendingMethodCall
impl Debug for PendingMethodCall
Source§impl Future for PendingMethodCall
impl Future for PendingMethodCall
Source§impl OrderedFuture for PendingMethodCall
impl OrderedFuture for PendingMethodCall
Source§fn poll_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&Self::Ordering>,
) -> Poll<Option<(Self::Ordering, Self::Output)>>
fn poll_before( self: Pin<&mut Self>, cx: &mut Context<'_>, before: Option<&Self::Ordering>, ) -> Poll<Option<(Self::Ordering, Self::Output)>>
Attempt to pull out the value of this future, registering the current task for wakeup if
needed, and returning
None if it is known that the future will not produce a value
ordered before the given point. Read moreSource§fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
The minimum value of the ordering of the item. Read more
Auto Trait Implementations§
impl Freeze for PendingMethodCall
impl !RefUnwindSafe for PendingMethodCall
impl Send for PendingMethodCall
impl Sync for PendingMethodCall
impl Unpin for PendingMethodCall
impl !UnwindSafe for PendingMethodCall
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<F> FutureExt for F
impl<F> FutureExt for F
Source§fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more