Struct ws_tool::ServerBuilder [−][src]
pub struct ServerBuilder {}Implementations
pub async fn accept<C, EI, DI, F1, F2, T>(
stream: TcpStream,
handshake_handler: F1,
codec_factory: F2
) -> Result<Framed<WsStream, C>, WsError> where
C: Encoder<EI, Error = WsError> + Decoder<Item = DI, Error = WsError>,
F1: Fn(Request<()>) -> Result<(Request<()>, Response<T>), WsError>,
F2: Fn(Request<()>, WsStream) -> Result<Framed<WsStream, C>, WsError>,
T: ToString + Debug,
Auto Trait Implementations
impl RefUnwindSafe for ServerBuilder
impl Send for ServerBuilder
impl Sync for ServerBuilder
impl Unpin for ServerBuilder
impl UnwindSafe for ServerBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
