Type Alias RemoteServerOptions

Source
pub type RemoteServerOptions<Incoming, Outgoing> = ServerOptions<TokioIo<Upgraded>, Incoming, Outgoing, RemoteServerContextExtensions>;

Aliased Type§

struct RemoteServerOptions<Incoming, Outgoing> {
    pub web_socket: WebSocketChannel<TokioIo<Upgraded>, Incoming, Outgoing>,
    pub extensions: RemoteServerContextExtensions,
}

Fields§

§web_socket: WebSocketChannel<TokioIo<Upgraded>, Incoming, Outgoing>§extensions: RemoteServerContextExtensions

Trait Implementations§

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§

fn into_web_socket_context( self, channel: Self::Channel, ) -> RemoteServerContext<Incoming, Outgoing>