irontide-session 1.0.2

BitTorrent session management: peers, torrents, and piece selection
Documentation
#![warn(missing_docs)]
//! `BitTorrent` session management: peers, torrents, and piece selection.

// error / i2p / rate_limiter / slot_tuner / stats / transport live in
// irontide-engine-support (M244b commit 1); re-exported at their old crate::
// paths so the session orchestrator references resolve zero-churn.
pub(crate) use irontide_engine_support::error;
pub use irontide_engine_support::i2p;
pub(crate) use irontide_engine_support::rate_limiter;
pub(crate) use irontide_engine_support::slot_tuner;
pub use irontide_engine_support::stats;
pub use irontide_engine_support::transport;
// ban + ip_filter live in irontide-session-types (M244a); re-exported so
// crate::ban::* / crate::ip_filter::* resolve.
pub(crate) use irontide_session_types::{ban, ip_filter};
// M244b engine/session split: the per-torrent actor, the peer I/O loops, and
// the non-leaf infra (alert / disk / tracker_manager / streaming / extension /
// ssl_manager / hash_pool / …) moved to irontide-engine. Re-export the modules
// session.rs reaches into, at their old crate:: paths, so the orchestrator
// resolves zero-churn — `pub use` for the ones that were public (facade stays
// byte-stable), `pub(crate) use` for the formerly crate-private ones.
pub use irontide_engine::{
    alert, disk, disk_backend, extension, hash_pool, streaming, url_guard, verify_before_download,
};
pub(crate) use irontide_engine::{
    blocking_spawner, peer_state, proxy, ssl_manager, torrent, tracker_manager,
};

// M244c session-core split: the session machinery (registries, queue, resume,
// apply, persistence, listeners, …) descended into irontide-session-core.
// Re-export the modules session.rs / watched_folder reach, at their old crate::
// paths and original visibilities, so the orchestrator resolves zero-churn and
// the facade surface stays byte-stable.
pub use irontide_session_core::{
    apply, category_manager, notification, resume_file, save_path, tag_manager,
};
pub(crate) use irontide_session_core::{
    listener, lsd, metadata_resolver, persistence, queue, settings_convert, types,
};

mod session;
/// M226: engine-side watched-folder auto-add dispatcher
/// (notify-debouncer-full → `add_torrent`).
pub mod watched_folder;

pub use alert::{Alert, AlertCategory, AlertKind, AlertStream};
pub use apply::{ApplyError, Phase, ReconfigGuard, ReconfigInFlight, apply_phases_with_rollback};
pub use category_manager::{
    CategoryError, CategoryMetadata, CategoryRegistry, resolve_category_registry_path,
};
pub use disk::{DiskConfig, DiskHandle, DiskJobFlags, DiskManagerHandle, DiskStats};
pub use disk_backend::{DisabledDiskIo, DiskIoBackend, DiskIoStats};
pub use error::{Error, Result};
pub use extension::ExtensionPlugin;
pub use hash_pool::{HashJob, HashPool, HashResult};
pub use i2p::{I2pDestination, I2pDestinationError};
// M244b: re-exported from irontide-engine to preserve the public paths
// `irontide_session::{TorrentHandle, ChokingAlgorithm, …}` (facade invariance).
pub use irontide_core::validate_resume_bitfield;
pub use irontide_core::{WebSeedState, WebSeedStats};
pub use irontide_engine::{
    ChokingAlgorithm, PeerPipelineSnapshot, PeerSource, ProxyConfig, ProxyType,
    SeedChokingAlgorithm, TorrentHandle, TrackerInfo, TrackerStatus, build_wanted_pieces,
};
pub use irontide_session_types::ban::BanConfig;
pub use irontide_session_types::ip_filter::{
    IpFilter, IpFilterError, PortFilter, parse_dat, parse_p2p,
};
pub use irontide_settings::{
    DEFAULT_ADMINADMIN_HASH, MaxRatioAction, QbtCompatSettings, QbtCredentialMigration,
    QbtMigrationError, Settings, SettingsError, hash_qbt_password, migrate_qbt_credentials,
};
pub use persistence::{DhtNodeEntry, PeerStrikeEntry, SessionState};
pub use rate_limiter::MixedModeAlgorithm;
pub use resume_file::{ResumeFileError, default_resume_dir};
pub use save_path::{
    ExpandSavePathError, SimpleContentType, TorrentSavePathContext, expand_save_path_for_category,
    expand_save_path_template,
};
pub use session::{
    AddSource, AddTorrentParams, AppliedSettings, ResumeLoadResult, SessionHandle, SessionSnapshot,
};
pub use stats::{
    MetricKind, NUM_METRICS, SessionCounters, SessionStatsMetric, session_stats_metrics,
};
pub use streaming::FileStream;
pub use tag_manager::{TagError, TagRegistry, resolve_tag_registry_path};
pub use transport::{BoxedStream, NetworkFactory, TransportListener};
pub use types::{
    DebugDispatchState, DebugPeerState, DebugState, DebugTorrentState, FileInfo, FileMode,
    FileStatus, PartialPieceInfo, PeerInfo, SessionStats, StorageFactory, TorrentConfig,
    TorrentFlags, TorrentInfo, TorrentState, TorrentStats, TorrentSummary,
};