[][src]Struct ws_async::WebSocket

pub struct WebSocket<T = Upgraded> { /* fields omitted */ }

Methods

impl<T> WebSocket<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

pub fn from_upgraded(upgraded: T) -> Self[src]

pub async fn next_frame<'_>(&'_ mut self) -> Result<Option<Frame<Payload<T>>>>[src]

impl WebSocket[src]

pub async fn upgrade(body: Body) -> Result<Self>[src]

Auto Trait Implementations

impl<T = Upgraded> !RefUnwindSafe for WebSocket<T>

impl<T> Send for WebSocket<T> where
    T: Send

impl<T> Sync for WebSocket<T> where
    T: Send

impl<T> Unpin for WebSocket<T>

impl<T = Upgraded> !UnwindSafe for WebSocket<T>

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<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<V, T> VZip<V> for T where
    V: MultiLane<T>,