Function rustix::backend::net::sockopt::duration_to_secs

source ยท
fn duration_to_secs<T: TryFrom<u64>>(duration: Duration) -> Result<T>
Expand description

Convert to seconds, rounding up if necessary.