Type Alias LocalServerContext

Source
pub type LocalServerContext<Incoming, Outgoing> = ServerContext<UnixStream, Incoming, Outgoing, Vec<u8>, ()>;

Aliased Type§

struct LocalServerContext<Incoming, Outgoing> { /* private fields */ }

Trait Implementations§

Source§

impl<Incoming, Outgoing> WebSocketContext for LocalServerContext<Incoming, Outgoing>
where Incoming: CommunicableType + Send, Outgoing: CommunicableType + From<GenericWebSocketError> + Send,

Source§

type Options = ServerOptions<UnixStream, Incoming, Outgoing, ()>

Source§

type Incoming = Incoming

Source§

type Outgoing = Outgoing

Source§

type Responder = ()

Source§

async fn handle_incoming( &mut self, incoming: Communication<Self::Incoming>, ) -> Result<(), WebSocketError>

Source§

async fn handle_outgoing( &mut self, outgoing: WebSocketItem<Communication<Self::Outgoing>, Self::Responder>, ) -> Result<(), WebSocketError>

Source§

fn with_options( options: Self::Options, channel: <Self::Options as IntoWebSocketContext<Self>>::Channel, ) -> Self