pub struct RequestSpan {
pub span: Span,
pub info: RequestInfo,
}Expand description
Request’s span information
Created on every request by the middleware, but not accessible to the user directly
Fields§
§span: SpanUnderlying tracing span
info: RequestInfoRequest’s information
Implementations§
Source§impl RequestSpan
impl RequestSpan
Sourcepub fn new(context: &impl LayerContext, span: Span, parts: &Parts) -> Self
pub fn new(context: &impl LayerContext, span: Span, parts: &Parts) -> Self
Creates new request span
Auto Trait Implementations§
impl Freeze for RequestSpan
impl !RefUnwindSafe for RequestSpan
impl Send for RequestSpan
impl Sync for RequestSpan
impl Unpin for RequestSpan
impl !UnwindSafe for RequestSpan
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