use dope_sys::{
io::{
reactor::{complete, complete::Observe},
socket::option::tuning,
},
kernel, ring,
table::token,
};
pub(crate) use envelope::Envelope;
use crate::{
Backend,
driver::{life::native::host::context::Context, retained::flight},
io::socket::option,
};
mod binding;
mod envelope;
mod tuned;
pub(crate) type Token = <Backend as token::Source>::Token<Context>;
type Frame = <Token as token::Codec>::Frame;
type Tune = <Token as token::Codec>::Tuning;
type Selected<'d> = o3::buffer::storage::provided::native::Pending<'d, crate::driver::Shared>;
type Returned = <Backend as kernel::Source>::Returned;
type NativeEntry = <Backend as ring::Source>::Entry<Token>;
type Scalar = <NativeEntry as complete::Entry>::Outcome;
pub(crate) type Entry = complete::Parts<Token, Scalar, <NativeEntry as complete::Entry>::Flags>;
type Observation = <Backend as Observe<Token>>::Observation;
pub(crate) type Tuning =
<Backend as tuning::Source>::Table<flight::raw::Echo, { option::MAX_STREAM_OPTIONS }>;
type Occupied<'state> =
<Tuning as tuning::Table<flight::raw::Echo, { option::MAX_STREAM_OPTIONS }>>::Occupied<'state>;