pub struct InstrumentedStream<T> {
inner: MaybeHttpsStream<T>,
tls_info: Option<TlsHandshakeInfo>,
}Fields§
§inner: MaybeHttpsStream<T>§tls_info: Option<TlsHandshakeInfo>Implementations§
Source§impl<T> InstrumentedStream<T>
impl<T> InstrumentedStream<T>
fn from_maybe_https_stream(stream: MaybeHttpsStream<T>) -> Self
Trait Implementations§
Source§impl<T> Connection for InstrumentedStream<T>
impl<T> Connection for InstrumentedStream<T>
Source§impl<T> Debug for InstrumentedStream<T>
impl<T> Debug for InstrumentedStream<T>
Source§impl<T> Read for InstrumentedStream<T>
impl<T> Read for InstrumentedStream<T>
Source§impl<T> Write for InstrumentedStream<T>
impl<T> Write for InstrumentedStream<T>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the destination. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_shutdown( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to shut down this writer.
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreimpl<T: Unpin> Unpin for InstrumentedStream<T>
Auto Trait Implementations§
impl<T> Freeze for InstrumentedStream<T>where
T: Freeze,
impl<T> !RefUnwindSafe for InstrumentedStream<T>
impl<T> Send for InstrumentedStream<T>where
T: Send,
impl<T> Sync for InstrumentedStream<T>where
T: Sync,
impl<T> !UnwindSafe for InstrumentedStream<T>
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert