#![cfg_attr(
test,
expect(
clippy::struct_field_names,
reason = "false positive from automock generated code"
)
)]
use std::fmt::Debug;
use std::io;
use libc::cpu_set_t;
#[cfg_attr(test, mockall::automock)]
pub(crate) trait Bindings: Debug + Send + Sync + 'static {
fn sched_setaffinity_current(&self, cpuset: &cpu_set_t) -> Result<(), io::Error>;
fn sched_getaffinity_current(&self) -> Result<cpu_set_t, io::Error>;
fn sched_getcpu(&self) -> i32;
}