Struct websocket::server::upgrade::sync::RequestStreamPair [−][src]
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]
S: Stream,
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
fn into_ws(self) -> Result<Upgrade<Self::Stream>, Self::Error>
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for RequestStreamPair<S>
impl<S> Send for RequestStreamPair<S> where
S: Send,
S: Send,
impl<S> !Sync for RequestStreamPair<S>
impl<S> Unpin for RequestStreamPair<S> where
S: Unpin,
S: Unpin,
impl<S> !UnwindSafe for RequestStreamPair<S>
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,