Skip to main content

Crate irontide_engine_support

Crate irontide_engine_support 

Source
Expand description

Engine support primitives for irontide.

This is the thin leaf crate that sits below both the engine runtime (irontide-engine) and irontide-session. It owns the pure, low-coupling mechanisms that both layers consume downward:

  • error — the crate-wide Error/Result type (#[from]-wraps the lower-crate errors plus i2p::SamError).
  • i2p — the I2P SAM-bridge client (co-located with error because Error #[from]-wraps i2p::SamError).
  • transport — the network transport abstraction (BoxedStream, NetworkFactory, TransportListener).
  • rate_limiter — the mixed-mode (GCRA) rate limiter.
  • slot_tuner — adaptive unchoke-slot tuning.
  • stats — the engine stats accumulator.

Extracted from irontide-session at M244b (the engine/session split). The grounding verified these six modules are pure leaves — the only intra-crate edge is error -> i2p (Error #[from] i2p::SamError), which is why the two co-locate here. Every other module has zero crate:: coupling.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

error
i2p
I2P support via the SAM v3.1 bridge protocol.
rate_limiter
Token bucket rate limiter.
slot_tuner
Automatic upload slot tuning via hill-climbing.
stats
Session statistics metric registry and atomic counter array.
transport
Network transport abstraction layer.