[][src]Struct hyper::http::h1::Http11Message

pub struct Http11Message { /* fields omitted */ }

An implementation of the HttpMessage trait for HTTP/1.1.

Implementations

impl Http11Message[src]

pub fn into_inner(self) -> Box<dyn NetworkStream + Send>[src]

Consumes the Http11Message and returns the underlying NetworkStream.

pub fn get_ref(&self) -> &(dyn NetworkStream + Send)[src]

Gets a borrowed reference to the underlying NetworkStream, regardless of the state of the Http11Message.

pub fn get_mut(&mut self) -> &mut (dyn NetworkStream + Send)[src]

Gets a mutable reference to the underlying NetworkStream, regardless of the state of the Http11Message.

pub fn with_stream(stream: Box<dyn NetworkStream + Send>) -> Http11Message[src]

Creates a new Http11Message that will use the given NetworkStream for communicating to the peer.

pub fn flush_outgoing(&mut self) -> Result<()>[src]

Flushes the current outgoing content and moves the stream into the stream property.

TODO It might be sensible to lift this up to the HttpMessage trait itself...

Trait Implementations

impl Debug for Http11Message[src]

impl HttpMessage for Http11Message[src]

impl Read for Http11Message[src]

impl Write for Http11Message[src]

Auto Trait Implementations

impl !RefUnwindSafe for Http11Message

impl Send for Http11Message

impl !Sync for Http11Message

impl Unpin for Http11Message

impl !UnwindSafe for Http11Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]