rustix::backend::net::sockopt

Function set_socket_keepalive

Source
pub(crate) fn set_socket_keepalive(
    fd: BorrowedFd<'_>,
    keepalive: bool,
) -> Result<()>