Struct Parts
struct Parts<T, S> { ... }
Deconstructed parts of a Connection.
This allows taking apart a Connection at a later time, in order to
reclaim the IO object, and additional related pieces.
Fields
io: TThe original IO object used in the handshake.
read_buf: bytes::BytesA buffer of bytes that have been read but not processed as HTTP.
If the client sent additional bytes after its last request, and this connection "ended" with an upgrade, the read buffer will contain those bytes.
You will want to check for any existing bytes if you plan to continue communicating on the IO object.
service: SThe
Serviceused to serve this connection.
Implementations
impl<T> Any for Parts<T, S>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Parts<T, S>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Parts<T, S>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Parts<T, S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Parts<T, S>
impl<T> WithSubscriber for Parts<T, S>
impl<T, S> Freeze for Parts<T, S>
impl<T, S> RefUnwindSafe for Parts<T, S>
impl<T, S> Send for Parts<T, S>
impl<T, S> Sync for Parts<T, S>
impl<T, S> Unpin for Parts<T, S>
impl<T, S> UnwindSafe for Parts<T, S>
impl<T, U> Into for Parts<T, S>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Parts<T, S>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Parts<T, S>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::fmt::Debug, S: $crate::fmt::Debug> Debug for Parts<T, S>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result