Skip to main content

connection_apply_timeouts

Function connection_apply_timeouts 

Source
pub fn connection_apply_timeouts(
    connection: &mut NativeConnection,
    read_ms: Option<u64>,
    write_ms: Option<u64>,
) -> i32
Expand description

Applies bounded read and write timeouts to a native connection.

§Parameters

§Returns

Returns the computed value produced by crate::connection::connection_apply_timeouts.

§Examples

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