Skip to main content

connection_accept_next

Function connection_accept_next 

Source
pub fn connection_accept_next(
    listener: &TcpListener,
) -> Result<NativeConnection, i32>
Expand description

Accepts the next TCP connection from a native listener.

§Parameters

§Returns

Returns the successful value produced by crate::connection::connection_accept_next or an error when the operation fails.

§Errors

Returns an error value when crate::connection::connection_accept_next cannot complete successfully.

§Examples

ⓘ
let _result = pharos_runtime_core::connection::connection_accept_next(todo!());