pub struct NetworkDiagnostics {
pub response: NetworkRequestResponse,
pub headers: MetadataMap,
pub trailers: MetadataMap,
}Expand description
Ответ проверки прохождения запроса.
Транспорт склеивает заголовки и трейлеры в один набор; диагностике они нужны по отдельности.
Fields§
§response: NetworkRequestResponseСообщение ответа конечного узла.
headers: MetadataMapЗаголовки ответа.
trailers: MetadataMapТрейлеры ответа.
Trait Implementations§
Source§impl Clone for NetworkDiagnostics
impl Clone for NetworkDiagnostics
Auto Trait Implementations§
impl Forget for NetworkDiagnostics
impl Freeze for NetworkDiagnosticswhere
*const u8 is !null: Freeze,
PhantomData<(String, String)>: Freeze,
*const [Pos] is !null: Freeze,
PhantomData<[Pos]>: Freeze,
PhantomData<Bucket<HeaderValue>>: Freeze,
PhantomData<ExtraValue<HeaderValue>>: Freeze,
impl Move for NetworkDiagnostics
impl RefUnwindSafe for NetworkDiagnostics
impl Send for NetworkDiagnostics
impl Sync for NetworkDiagnostics
impl Unpin for NetworkDiagnostics
impl UnsafeUnpin for NetworkDiagnosticswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
impl UnwindSafe for NetworkDiagnosticswhere
HashMap<String, String>: UnwindSafe,
BoxRaw<[Pos]>: UnwindSafe,
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: 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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request