mod chain;
use std::{num, pin};
pub use chain::Chain;
use crate::io::socket::option::tuning::Occupied;
pub unsafe trait Quiesce {
type Storage;
fn is_quiescent(&self) -> bool;
fn into_storage(self) -> Self::Storage;
}
pub unsafe trait State<E: Copy, const N: usize>: Default {
type Occupied<'a>: Occupied<E>
where
Self: 'a;
fn bind(self: pin::Pin<&mut Self>) -> Option<Self::Occupied<'_>>;
unsafe fn values(
self: pin::Pin<&mut Self>,
target: E,
count: num::NonZero<u32>,
) -> &mut [libc::c_int; N];
}