[][src]Struct ws_endpoint::WsEndpoint

pub struct WsEndpoint<T, F> { /* fields omitted */ }

Implementations

impl<F: 'static + Future<Output = Option<String>> + Send> WsEndpoint<String, F>[src]

pub fn new_async_text_endpoint(
    processor: fn(_: String) -> F
) -> WsEndpoint<String, F>
[src]

pub fn new_sync_text_endpoint(
    processor: fn(_: String) -> F
) -> WsEndpoint<String, F>
[src]

pub async fn start<A: ToSocketAddrs>(self, addr: A) -> Result<()>[src]

impl<F: 'static + Future<Output = Option<Vec<u8>>> + Send> WsEndpoint<Vec<u8>, F>[src]

pub fn new_async_binary_endpoint(
    processor: fn(_: Vec<u8>) -> F
) -> WsEndpoint<Vec<u8>, F>
[src]

pub fn new_sync_binary_endpoint(
    processor: fn(_: Vec<u8>) -> F
) -> WsEndpoint<Vec<u8>, F>
[src]

pub async fn start<A: ToSocketAddrs>(self, addr: A) -> Result<()>[src]

Auto Trait Implementations

impl<T, F> RefUnwindSafe for WsEndpoint<T, F>

impl<T, F> Send for WsEndpoint<T, F>

impl<T, F> Sync for WsEndpoint<T, F>

impl<T, F> Unpin for WsEndpoint<T, F>

impl<T, F> UnwindSafe for WsEndpoint<T, F>

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>,