pub struct LogContextFuture<F> { /* private fields */ }
Expand description
A future with an attached logging context.
This type is created by the FutureExt::in_log_context
.
§Note
If the wrapped future will panic, the next poll
invocation will panic unconditionally.
Trait Implementations§
Source§impl<F: Debug> Debug for LogContextFuture<F>
impl<F: Debug> Debug for LogContextFuture<F>
Source§impl<F> Future for LogContextFuture<F>where
F: Future,
impl<F> Future for LogContextFuture<F>where
F: Future,
impl<'pin, F> Unpin for LogContextFuture<F>where
PinnedFieldsOf<__LogContextFuture<'pin, F>>: Unpin,
Auto Trait Implementations§
impl<F> Freeze for LogContextFuture<F>where
F: Freeze,
impl<F> !RefUnwindSafe for LogContextFuture<F>
impl<F> Send for LogContextFuture<F>where
F: Send,
impl<F> Sync for LogContextFuture<F>where
F: Sync,
impl<F> !UnwindSafe for LogContextFuture<F>
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 Fwhere
F: Future,
impl<F> FutureExt for Fwhere
F: Future,
Source§fn in_log_context(self, context: LogContext) -> LogContextFuture<F> ⓘ
fn in_log_context(self, context: LogContext) -> LogContextFuture<F> ⓘ
Attaches a log context to this future. Read more
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