[][src]Struct rocket::http::hyper::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 + 'static + Send>[src]

Consumes the Http11Message and returns the underlying NetworkStream.

pub fn get_ref(&self) -> &(dyn NetworkStream + 'static + 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 + 'static + 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 + 'static + 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<(), Error>[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, I> AsResult<T, I> for T where
    I: Input, 

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<T> IntoCollection<T> for T

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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