[][src]Struct websocket::server::upgrade::sync::RequestStreamPair

pub struct RequestStreamPair<S: Stream>(pub S, pub Request);

If you have your requests separate from your stream you can use this struct to upgrade the connection based on the request given (the request should be a handshake).

Trait Implementations

impl<S> IntoWs for RequestStreamPair<S> where
    S: Stream
[src]

type Stream = S

The type of stream this upgrade process is working with (TcpStream, etc.)

type Error = (S, Request, HyperIntoWsError)

An error value in case the stream is not asking for a websocket connection or something went wrong. It is common to also include the stream here. Read more

Auto Trait Implementations

impl<S> !Sync for RequestStreamPair<S>

impl<S> Unpin for RequestStreamPair<S> where
    S: Unpin

impl<S> Send for RequestStreamPair<S> where
    S: Send

impl<S> !UnwindSafe for RequestStreamPair<S>

impl<S> !RefUnwindSafe for RequestStreamPair<S>

Blanket Implementations

impl<S> IntoWs for S where
    S: Stream
[src]

type Stream = S

The type of stream this upgrade process is working with (TcpStream, etc.)

type Error = (S, Option<Incoming<(Method, RequestUri)>>, Option<Buffer>, HyperIntoWsError)

An error value in case the stream is not asking for a websocket connection or something went wrong. It is common to also include the stream here. Read more

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

impl<T> From<T> for T[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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

impl<T> Erased for T