Trait IntoWebSocketContext

Source
pub trait IntoWebSocketContext<C>{
    type Channel;

    // Required method
    fn into_web_socket_context(self, channel: Self::Channel) -> C;
}

Required Associated Types§

Required Methods§

Source

fn into_web_socket_context(self, channel: Self::Channel) -> C

Implementors§

Source§

impl<Incoming, Outgoing> IntoWebSocketContext<ServerContext<TokioIo<Upgraded>, Incoming, Outgoing, (), RemoteServerContextExtensions>> for RemoteServerOptions<Incoming, Outgoing>
where Incoming: CommunicableType + Send, Outgoing: CommunicableType + From<GenericWebSocketError> + Send,

Source§

type Channel = Sender<WebSocketItem<Communication<Incoming>, Sender<Communication<Outgoing>>>>

Source§

impl<Incoming, Outgoing> IntoWebSocketContext<ServerContext<UnixStream, Incoming, Outgoing, Vec<u8>, ()>> for LocalServerOptions<Incoming, Outgoing>
where Incoming: CommunicableType + Send, Outgoing: CommunicableType + From<GenericWebSocketError> + Send,

Source§

type Channel = Sender<WebSocketItem<Communication<Incoming>, Sender<Communication<Outgoing>>>>