pub struct Upgrade<Transport> { /* private fields */ }Expand description
Implementations§
Source§impl<Transport> Upgrade<Transport>
impl<Transport> Upgrade<Transport>
Sourcepub fn received_headers(&self) -> &Headers
pub fn received_headers(&self) -> &Headers
Borrows The http headers the peer sent to us
Sourcepub fn request_headers(&self) -> &Headers
👎Deprecated since 1.3.0: use received_headers instead
pub fn request_headers(&self) -> &Headers
use received_headers instead
Borrows The http headers the peer sent to us
Sourcepub fn received_headers_mut(&mut self) -> &mut Headers
pub fn received_headers_mut(&mut self) -> &mut Headers
Mutably borrow The http headers the peer sent to us
Sourcepub fn request_headers_mut(&mut self) -> &mut Headers
👎Deprecated since 1.3.0: use received_headers_mut instead
pub fn request_headers_mut(&mut self) -> &mut Headers
use received_headers_mut instead
Mutably borrow The http headers the peer sent to us
Sourcepub fn set_received_headers(&mut self, received_headers: Headers) -> &mut Self
pub fn set_received_headers(&mut self, received_headers: Headers) -> &mut Self
Sets The http headers the peer sent to us, returning &mut Self for chaining
Sourcepub fn set_request_headers(&mut self, request_headers: Headers) -> &mut Self
👎Deprecated since 1.3.0: use set_received_headers instead
pub fn set_request_headers(&mut self, request_headers: Headers) -> &mut Self
use set_received_headers instead
Sets The http headers the peer sent to us, returning &mut Self for chaining
Sourcepub fn with_received_headers(self, received_headers: Headers) -> Self
pub fn with_received_headers(self, received_headers: Headers) -> Self
Owned chainable setter for The http headers the peer sent to us, returning Self
Sourcepub fn with_request_headers(self, request_headers: Headers) -> Self
👎Deprecated since 1.3.0: use with_received_headers instead
pub fn with_request_headers(self, request_headers: Headers) -> Self
use with_received_headers instead
Owned chainable setter for The http headers the peer sent to us, returning Self
Sourcepub fn into_received_headers(self) -> Headers
pub fn into_received_headers(self) -> Headers
Consumes self, returning The http headers the peer sent to us
Sourcepub fn into_request_headers(self) -> Headers
👎Deprecated since 1.3.0: use into_received_headers instead
pub fn into_request_headers(self) -> Headers
use into_received_headers instead
Consumes self, returning The http headers the peer sent to us
Sourcepub fn sent_headers(&self) -> &Headers
pub fn sent_headers(&self) -> &Headers
Borrows The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn response_headers(&self) -> &Headers
👎Deprecated since 1.3.0: use sent_headers instead
pub fn response_headers(&self) -> &Headers
use sent_headers instead
Borrows The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn sent_headers_mut(&mut self) -> &mut Headers
pub fn sent_headers_mut(&mut self) -> &mut Headers
Mutably borrow The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn response_headers_mut(&mut self) -> &mut Headers
👎Deprecated since 1.3.0: use sent_headers_mut instead
pub fn response_headers_mut(&mut self) -> &mut Headers
use sent_headers_mut instead
Mutably borrow The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn set_sent_headers(&mut self, sent_headers: Headers) -> &mut Self
pub fn set_sent_headers(&mut self, sent_headers: Headers) -> &mut Self
Sets The http headers as set before the upgrade was negotiated and sent, returning &mut Self for chaining
to the peer.
Sourcepub fn set_response_headers(&mut self, response_headers: Headers) -> &mut Self
👎Deprecated since 1.3.0: use set_sent_headers instead
pub fn set_response_headers(&mut self, response_headers: Headers) -> &mut Self
use set_sent_headers instead
Sets The http headers as set before the upgrade was negotiated and sent, returning &mut Self for chaining
to the peer.
Sourcepub fn with_sent_headers(self, sent_headers: Headers) -> Self
pub fn with_sent_headers(self, sent_headers: Headers) -> Self
Owned chainable setter for The http headers as set before the upgrade was negotiated and sent, returning Self
to the peer.
Sourcepub fn with_response_headers(self, response_headers: Headers) -> Self
👎Deprecated since 1.3.0: use with_sent_headers instead
pub fn with_response_headers(self, response_headers: Headers) -> Self
use with_sent_headers instead
Owned chainable setter for The http headers as set before the upgrade was negotiated and sent, returning Self
to the peer.
Sourcepub fn into_sent_headers(self) -> Headers
pub fn into_sent_headers(self) -> Headers
Consumes self, returning The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn into_response_headers(self) -> Headers
👎Deprecated since 1.3.0: use into_sent_headers instead
pub fn into_response_headers(self) -> Headers
use into_sent_headers instead
Consumes self, returning The http headers as set before the upgrade was negotiated and sent to the peer.
Sourcepub fn set_path(&mut self, path: Cow<'static, str>) -> &mut Self
pub fn set_path(&mut self, path: Cow<'static, str>) -> &mut Self
Sets The request path, returning &mut Self for chaining
Sourcepub fn with_path(self, path: Cow<'static, str>) -> Self
pub fn with_path(self, path: Cow<'static, str>) -> Self
Owned chainable setter for The request path, returning Self
Sourcepub fn method_mut(&mut self) -> &mut Method
pub fn method_mut(&mut self) -> &mut Method
Mutably borrow The http request method
Sourcepub fn set_method(&mut self, method: Method) -> &mut Self
pub fn set_method(&mut self, method: Method) -> &mut Self
Sets The http request method, returning &mut Self for chaining
Sourcepub fn with_method(self, method: Method) -> Self
pub fn with_method(self, method: Method) -> Self
Owned chainable setter for The http request method, returning Self
Sourcepub fn state(&self) -> &TypeSet
pub fn state(&self) -> &TypeSet
Borrows Any state that has been accumulated on the Conn before negotiating the upgrade
Sourcepub fn state_mut(&mut self) -> &mut TypeSet
pub fn state_mut(&mut self) -> &mut TypeSet
Mutably borrow Any state that has been accumulated on the Conn before negotiating the upgrade
Sourcepub fn set_state(&mut self, state: TypeSet) -> &mut Self
pub fn set_state(&mut self, state: TypeSet) -> &mut Self
Sets Any state that has been accumulated on the Conn before negotiating the upgrade, returning &mut Self for chaining
Sourcepub fn with_state(self, state: TypeSet) -> Self
pub fn with_state(self, state: TypeSet) -> Self
Owned chainable setter for Any state that has been accumulated on the Conn before negotiating the upgrade, returning Self
Sourcepub fn into_state(self) -> TypeSet
pub fn into_state(self) -> TypeSet
Consumes self, returning Any state that has been accumulated on the Conn before negotiating the upgrade
Sourcepub fn transport(&self) -> &Transport
pub fn transport(&self) -> &Transport
Borrows The underlying io (often a TcpStream or similar)
Sourcepub fn transport_mut(&mut self) -> &mut Transport
pub fn transport_mut(&mut self) -> &mut Transport
Mutably borrow The underlying io (often a TcpStream or similar)
Sourcepub fn set_transport(&mut self, transport: Transport) -> &mut Self
pub fn set_transport(&mut self, transport: Transport) -> &mut Self
Sets The underlying io (often a TcpStream or similar), returning &mut Self for chaining
Sourcepub fn with_transport(self, transport: Transport) -> Self
pub fn with_transport(self, transport: Transport) -> Self
Owned chainable setter for The underlying io (often a TcpStream or similar), returning Self
Sourcepub fn into_transport(self) -> Transport
pub fn into_transport(self) -> Transport
Consumes self, returning The underlying io (often a TcpStream or similar)
Sourcepub fn buffer(&self) -> &[u8] ⓘ
pub fn buffer(&self) -> &[u8] ⓘ
Borrows Any bytes that have been read from the underlying transport already.
It is your responsibility to process these bytes before reading directly from the transport.
Sourcepub fn buffer_mut(&mut self) -> &mut [u8] ⓘ
pub fn buffer_mut(&mut self) -> &mut [u8] ⓘ
Mutably borrow Any bytes that have been read from the underlying transport already.
It is your responsibility to process these bytes before reading directly from the transport.
Sourcepub fn context(&self) -> &Arc<HttpContext>
pub fn context(&self) -> &Arc<HttpContext>
Borrows The HttpContext shared for this server
Sourcepub fn context_mut(&mut self) -> &mut Arc<HttpContext>
pub fn context_mut(&mut self) -> &mut Arc<HttpContext>
Mutably borrow The HttpContext shared for this server
Sourcepub fn set_context(&mut self, context: Arc<HttpContext>) -> &mut Self
pub fn set_context(&mut self, context: Arc<HttpContext>) -> &mut Self
Sets The HttpContext shared for this server, returning &mut Self for chaining
Sourcepub fn with_context(self, context: Arc<HttpContext>) -> Self
pub fn with_context(self, context: Arc<HttpContext>) -> Self
Owned chainable setter for The HttpContext shared for this server, returning Self
Sourcepub fn into_context(self) -> Arc<HttpContext>
pub fn into_context(self) -> Arc<HttpContext>
Consumes self, returning The HttpContext shared for this server
Sourcepub fn peer_ip(&self) -> Option<IpAddr>
pub fn peer_ip(&self) -> Option<IpAddr>
Returns a copy of the ip address of the connection, if available
Sourcepub fn peer_ip_mut(&mut self) -> Option<&mut IpAddr>
pub fn peer_ip_mut(&mut self) -> Option<&mut IpAddr>
Mutably borrow the ip address of the connection, if available
Sourcepub fn set_peer_ip(&mut self, peer_ip: Option<IpAddr>) -> &mut Self
pub fn set_peer_ip(&mut self, peer_ip: Option<IpAddr>) -> &mut Self
Sets the ip address of the connection, if available, returning &mut Self for chaining
Sourcepub fn with_peer_ip(self, peer_ip: Option<IpAddr>) -> Self
pub fn with_peer_ip(self, peer_ip: Option<IpAddr>) -> Self
Owned chainable setter for the ip address of the connection, if available, returning Self
Sourcepub fn take_peer_ip(&mut self) -> Option<IpAddr>
pub fn take_peer_ip(&mut self) -> Option<IpAddr>
Takes the ip address of the connection, if available, leaving a None in its place
Sourcepub fn start_time(&self) -> Instant
pub fn start_time(&self) -> Instant
Returns a copy of the wall-clock time at which the underlying Conn was constructed
Sourcepub fn start_time_mut(&mut self) -> &mut Instant
pub fn start_time_mut(&mut self) -> &mut Instant
Mutably borrow the wall-clock time at which the underlying Conn was constructed
Sourcepub fn set_start_time(&mut self, start_time: Instant) -> &mut Self
pub fn set_start_time(&mut self, start_time: Instant) -> &mut Self
Sets the wall-clock time at which the underlying Conn was constructed, returning &mut Self for chaining
Sourcepub fn with_start_time(self, start_time: Instant) -> Self
pub fn with_start_time(self, start_time: Instant) -> Self
Owned chainable setter for the wall-clock time at which the underlying Conn was constructed, returning Self
Borrows the :authority http/3 pseudo-header
Mutably borrow the :authority http/3 pseudo-header
Sets the :authority http/3 pseudo-header, returning &mut Self for chaining
Owned chainable setter for the :authority http/3 pseudo-header, returning Self
Takes the :authority http/3 pseudo-header, leaving a None in its place
Consumes self, returning the :authority http/3 pseudo-header
Sourcepub fn scheme_mut(&mut self) -> Option<&mut Cow<'static, str>>
pub fn scheme_mut(&mut self) -> Option<&mut Cow<'static, str>>
Mutably borrow the :scheme http/3 pseudo-header
Sourcepub fn set_scheme(&mut self, scheme: Option<Cow<'static, str>>) -> &mut Self
pub fn set_scheme(&mut self, scheme: Option<Cow<'static, str>>) -> &mut Self
Sets the :scheme http/3 pseudo-header, returning &mut Self for chaining
Sourcepub fn with_scheme(self, scheme: Option<Cow<'static, str>>) -> Self
pub fn with_scheme(self, scheme: Option<Cow<'static, str>>) -> Self
Owned chainable setter for the :scheme http/3 pseudo-header, returning Self
Sourcepub fn take_scheme(&mut self) -> Option<Cow<'static, str>>
pub fn take_scheme(&mut self) -> Option<Cow<'static, str>>
Takes the :scheme http/3 pseudo-header, leaving a None in its place
Sourcepub fn into_scheme(self) -> Option<Cow<'static, str>>
pub fn into_scheme(self) -> Option<Cow<'static, str>>
Consumes self, returning the :scheme http/3 pseudo-header
Sourcepub fn protocol_mut(&mut self) -> Option<&mut Cow<'static, str>>
pub fn protocol_mut(&mut self) -> Option<&mut Cow<'static, str>>
Mutably borrow the :protocol http/3 pseudo-header
Sourcepub fn set_protocol(&mut self, protocol: Option<Cow<'static, str>>) -> &mut Self
pub fn set_protocol(&mut self, protocol: Option<Cow<'static, str>>) -> &mut Self
Sets the :protocol http/3 pseudo-header, returning &mut Self for chaining
Sourcepub fn with_protocol(self, protocol: Option<Cow<'static, str>>) -> Self
pub fn with_protocol(self, protocol: Option<Cow<'static, str>>) -> Self
Owned chainable setter for the :protocol http/3 pseudo-header, returning Self
Sourcepub fn take_protocol(&mut self) -> Option<Cow<'static, str>>
pub fn take_protocol(&mut self) -> Option<Cow<'static, str>>
Takes the :protocol http/3 pseudo-header, leaving a None in its place
Sourcepub fn into_protocol(self) -> Option<Cow<'static, str>>
pub fn into_protocol(self) -> Option<Cow<'static, str>>
Consumes self, returning the :protocol http/3 pseudo-header
Sourcepub fn http_version(&self) -> &Version
pub fn http_version(&self) -> &Version
Borrows the http version
Sourcepub fn http_version_mut(&mut self) -> &mut Version
pub fn http_version_mut(&mut self) -> &mut Version
Mutably borrow the http version
Sourcepub fn set_http_version(&mut self, http_version: Version) -> &mut Self
pub fn set_http_version(&mut self, http_version: Version) -> &mut Self
Sets the http version, returning &mut Self for chaining
Sourcepub fn with_http_version(self, http_version: Version) -> Self
pub fn with_http_version(self, http_version: Version) -> Self
Owned chainable setter for the http version, returning Self
Sourcepub fn into_http_version(self) -> Version
pub fn into_http_version(self) -> Version
Consumes self, returning the http version
Sourcepub fn status(&self) -> Option<Status>
pub fn status(&self) -> Option<Status>
Returns a copy of the http response status set on the underlying Conn before the upgrade
(typically 101 Switching Protocols, or 200 OK for CONNECT). None if unset.
Sourcepub fn status_mut(&mut self) -> Option<&mut Status>
pub fn status_mut(&mut self) -> Option<&mut Status>
Mutably borrow the http response status set on the underlying Conn before the upgrade
(typically 101 Switching Protocols, or 200 OK for CONNECT). None if unset.
Sourcepub fn set_status(&mut self, status: Option<Status>) -> &mut Self
pub fn set_status(&mut self, status: Option<Status>) -> &mut Self
Sets the http response status set on the underlying Conn before the upgrade, returning &mut Self for chaining
(typically 101 Switching Protocols, or 200 OK for CONNECT). None if unset.
Sourcepub fn with_status(self, status: Option<Status>) -> Self
pub fn with_status(self, status: Option<Status>) -> Self
Owned chainable setter for the http response status set on the underlying Conn before the upgrade, returning Self
(typically 101 Switching Protocols, or 200 OK for CONNECT). None if unset.
Sourcepub fn take_status(&mut self) -> Option<Status>
pub fn take_status(&mut self) -> Option<Status>
Takes the http response status set on the underlying Conn before the upgrade, leaving a None in its place
(typically 101 Switching Protocols, or 200 OK for CONNECT). None if unset.
Sourcepub fn is_secure(&self) -> bool
pub fn is_secure(&self) -> bool
Returns a copy of whether this connection was deemed secure by the handler stack
Sourcepub fn secure_mut(&mut self) -> &mut bool
pub fn secure_mut(&mut self) -> &mut bool
Mutably borrow whether this connection was deemed secure by the handler stack
Sourcepub fn set_secure(&mut self, secure: bool) -> &mut Self
pub fn set_secure(&mut self, secure: bool) -> &mut Self
Sets whether this connection was deemed secure by the handler stack, returning &mut Self for chaining
Sourcepub fn with_secure(self, secure: bool) -> Self
pub fn with_secure(self, secure: bool) -> Self
Owned chainable setter for whether this connection was deemed secure by the handler stack, returning Self
Sourcepub fn received_trailers(&self) -> Option<&Headers>
pub fn received_trailers(&self) -> Option<&Headers>
Borrows Inbound trailers, populated either by a fully-consumed pre-upgrade body or by
the post-upgrade inbound state machine. Some only when non-empty.
Sourcepub fn received_trailers_mut(&mut self) -> Option<&mut Headers>
pub fn received_trailers_mut(&mut self) -> Option<&mut Headers>
Mutably borrow Inbound trailers, populated either by a fully-consumed pre-upgrade body or by
the post-upgrade inbound state machine. Some only when non-empty.
Sourcepub fn take_received_trailers(&mut self) -> Option<Headers>
pub fn take_received_trailers(&mut self) -> Option<Headers>
Takes Inbound trailers, populated either by a fully-consumed pre-upgrade body or by, leaving a None in its place
the post-upgrade inbound state machine. Some only when non-empty.
Source§impl<Transport> Upgrade<Transport>
impl<Transport> Upgrade<Transport>
Sourcepub fn h2_connection(&self) -> Option<&Arc<H2Connection>>
pub fn h2_connection(&self) -> Option<&Arc<H2Connection>>
the H2Connection driver for this upgrade, if it originated from an HTTP/2 stream
Sourcepub fn h2_stream_id(&self) -> Option<u32>
pub fn h2_stream_id(&self) -> Option<u32>
the h2 stream id for this upgrade, if it originated from an HTTP/2 stream
Sourcepub fn h3_connection(&self) -> Option<&Arc<H3Connection>>
pub fn h3_connection(&self) -> Option<&Arc<H3Connection>>
the H3Connection driver for this upgrade, if it originated from an HTTP/3 stream
Sourcepub fn h3_stream_id(&self) -> Option<u64>
pub fn h3_stream_id(&self) -> Option<u64>
the h3 stream id for this upgrade, if it originated from an HTTP/3 stream
Sourcepub fn take_buffer(&mut self) -> Vec<u8> ⓘ
pub fn take_buffer(&mut self) -> Vec<u8> ⓘ
Take any buffered bytes
borrow the shared state TypeSet for this application
Sourcepub fn querystring(&self) -> &str
pub fn querystring(&self) -> &str
retrieves the query component of the path
Sourcepub fn map_transport<T: AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static>(
self,
f: impl Fn(Transport) -> T,
) -> Upgrade<T>
pub fn map_transport<T: AsyncRead + AsyncWrite + Send + Sync + Unpin + 'static>( self, f: impl Fn(Transport) -> T, ) -> Upgrade<T>
Modify the transport type of this upgrade.
This is useful for boxing the transport in order to erase the type argument.
Source§impl<Transport: AsyncWrite + Unpin> Upgrade<Transport>
impl<Transport: AsyncWrite + Unpin> Upgrade<Transport>
Sourcepub async fn send_trailers(self, trailers: Headers) -> Result<()>
pub async fn send_trailers(self, trailers: Headers) -> Result<()>
Emit trailing headers and finish the outbound stream. Consumes self; further
writes are statically prevented.
Per-protocol behavior:
- HTTP/1.1 with
Transfer-Encoding: chunked: writes the last-chunk marker (0\r\n), the trailer section, and a final CRLF, then closes the transport. - HTTP/2: enqueues a trailing
HEADERSframe withEND_STREAMvia the connection driver and returns. The driver finishes the stream after draining any pending DATA frames. - HTTP/3: encodes a trailing
HEADERSframe via QPACK, writes it to the stream, then closes the stream (QUICFIN). - HTTP/1.1 without chunked encoding (raw upgrade, CONNECT tunnel, websocket-over-h1):
trailers can’t be expressed on the wire; dropped with a
log::warn!andOk(())returned.
§Errors
Returns the underlying io::Error when the wire write fails, BrokenPipe if
the stream has already been closed, and NotConnected if the carried
ProtocolSession is missing the expected driver for h2/h3.
Trait Implementations§
Source§impl<Transport> AsyncRead for Upgrade<Transport>
impl<Transport> AsyncRead for Upgrade<Transport>
Source§impl<Transport: AsyncWrite + Unpin> AsyncWrite for Upgrade<Transport>
impl<Transport: AsyncWrite + Unpin> AsyncWrite for Upgrade<Transport>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
buf into the object. Read moreSource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<usize>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize>>
bufs into the object using vectored
IO operations. Read moreAuto Trait Implementations§
impl<Transport> Freeze for Upgrade<Transport>where
Transport: Freeze,
impl<Transport> !RefUnwindSafe for Upgrade<Transport>
impl<Transport> Send for Upgrade<Transport>where
Transport: Send,
impl<Transport> Sync for Upgrade<Transport>where
Transport: Sync,
impl<Transport> Unpin for Upgrade<Transport>where
Transport: Unpin,
impl<Transport> UnsafeUnpin for Upgrade<Transport>where
Transport: UnsafeUnpin,
impl<Transport> !UnwindSafe for Upgrade<Transport>
Blanket Implementations§
Source§impl<R> AsyncReadExt for R
impl<R> AsyncReadExt for R
Source§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self>where
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self>where
Self: Unpin,
Source§fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self>where
Self: Unpin,
fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self>where
Self: Unpin,
Source§fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self>where
Self: Unpin,
fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self>where
Self: Unpin,
Source§fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self>where
Self: Unpin,
fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self>where
Self: Unpin,
Source§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self>where
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self>where
Self: Unpin,
buf. Read moreSource§fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
limit bytes from it. Read moreSource§impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
Source§fn write<'a>(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
Source§fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
Source§fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
Source§fn flush(&mut self) -> FlushFuture<'_, Self>where
Self: Unpin,
fn flush(&mut self) -> FlushFuture<'_, Self>where
Self: Unpin,
Source§fn boxed_writer<'a>(self) -> Pin<Box<dyn AsyncWrite + Send + 'a>>
fn boxed_writer<'a>(self) -> Pin<Box<dyn AsyncWrite + Send + 'a>>
dyn AsyncWrite + Send + 'a. Read more