mod actions;
mod events;
mod hooks;
mod types;
use std::num::NonZeroUsize;
pub(crate) use hooks::DaitaHooks;
pub use maybenot;
pub use maybenot::Error;
pub use maybenot::Machine;
#[derive(Debug, Clone)]
pub struct DaitaSettings {
pub maybenot_machines: Vec<Machine>,
pub max_decoy_frac: f64,
pub max_delay_frac: f64,
pub max_delayed_packets: NonZeroUsize,
pub min_delay_capacity: usize,
}
impl Default for DaitaSettings {
fn default() -> Self {
Self {
maybenot_machines: vec![],
max_decoy_frac: 0.0,
max_delay_frac: 0.0,
max_delayed_packets: const { NonZeroUsize::new(1024).unwrap() },
min_delay_capacity: 50,
}
}
}