spawn

Function spawn 

Source
pub fn spawn<SB>(
    addr: SocketAddr,
    builder: SB,
    controller: &Controller,
) -> JoinHandle<Result<(), BoxError>> 
where SB: Service<SocketAddr, Error = BoxError> + Send + 'static, SB::Future: Send, SB::Response: Service<BytesMut, Response = BytesMut, Error = Error> + Send, <SB::Response as Service<BytesMut>>::Future: Send,