pub(super) struct WsAcceptor<W> {
pub(super) listener: Box<dyn StreamListener>,
pub(super) layer: Arc<WsLayer<W>>,
pub(super) tls: bool,
}Expand description
WebSocket acceptor: accepts a byte stream, runs the WS handshake, and hands the split halves to the server.
Fields§
§listener: Box<dyn StreamListener>§layer: Arc<WsLayer<W>>§tls: booltrue for wss://, used when reporting local_endpoint.
Trait Implementations§
Source§impl<W> AsyncAcceptor for WsAcceptor<W>where
W: JsonRpcWsCodec,
impl<W> AsyncAcceptor for WsAcceptor<W>where
W: JsonRpcWsCodec,
Auto Trait Implementations§
impl<W> Freeze for WsAcceptor<W>
impl<W> !RefUnwindSafe for WsAcceptor<W>
impl<W> Send for WsAcceptor<W>
impl<W> Sync for WsAcceptor<W>
impl<W> Unpin for WsAcceptor<W>
impl<W> UnsafeUnpin for WsAcceptor<W>
impl<W> !UnwindSafe for WsAcceptor<W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more