[−][src]Struct hyper::upgrade::Upgraded
An upgraded HTTP connection.
This type holds a trait object internally of the original IO that
was used to speak HTTP before the upgrade. It can be used directly
as a Read
or Write
for convenience.
Alternatively, if the exact type is known, this can be deconstructed into its parts.
Implementations
impl Upgraded
[src][−]
pub fn downcast<T: AsyncRead + AsyncWrite + Unpin + 'static>(
self
) -> Result<Parts<T>, Self>
[src][−]
self
) -> Result<Parts<T>, Self>
Tries to downcast the internal trait object to the type passed.
On success, returns the downcasted parts. On error, returns the
Upgraded
back.
Trait Implementations
impl AsyncRead for Upgraded
[src][+]
impl AsyncWrite for Upgraded
[src][+]
impl Debug for Upgraded
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for Upgraded
[src]
impl Send for Upgraded
[src]
impl !Sync for Upgraded
[src]
impl Unpin for Upgraded
[src]
impl !UnwindSafe for Upgraded
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,