pub fn accept_http_request(
listener: &TcpListener,
) -> Result<(TcpStream, SocketAddr), i32>Expand description
Accepts one bounded TCP connection from a listener.
§Parameters
listener: Input consumed bycrate::binaries::accept_http_request.SocketAddr: Input consumed bycrate::binaries::accept_http_request.
§Returns
Returns the successful value produced by crate::binaries::accept_http_request or an error when the operation fails.
§Errors
Returns an error value when crate::binaries::accept_http_request cannot complete successfully.
§Examples
ⓘ
let _result = pharos_native::binaries::accept_http_request(todo!(), todo!());§Related
crate::binariesfor adjacent helpers that share the same runtime surface.