pub struct TraceFutureArgs<'a, C: CategoryString, S: AsTraceStrRef> {
pub category: C,
pub name: S,
pub args: Box<[Arg<'a>]>,
pub flow_id: Option<Id>,
pub _use_trace_future_args: (),
}Expand description
Arguments for TraceFuture and TraceFutureExt. Use trace_future_args! to construct this
object.
Fields§
§category: C§name: S§args: Box<[Arg<'a>]>The trace arguments to appear in every duration event written by the TraceFuture. args
should be empty if context is None.
flow_id: Option<Id>The flow id to use in the flow events that connect the duration events together. A flow id
will be constructed with Id::new() if not provided.
_use_trace_future_args: ()Use trace_future_args! to construct this object.
Auto Trait Implementations§
impl<'a, C, S> Freeze for TraceFutureArgs<'a, C, S>
impl<'a, C, S> RefUnwindSafe for TraceFutureArgs<'a, C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, C, S> Send for TraceFutureArgs<'a, C, S>
impl<'a, C, S> Sync for TraceFutureArgs<'a, C, S>
impl<'a, C, S> Unpin for TraceFutureArgs<'a, C, S>
impl<'a, C, S> UnwindSafe for TraceFutureArgs<'a, C, S>where
C: UnwindSafe,
S: 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