Skip to main content

Crate offline_protocol_reliability

Crate offline_protocol_reliability 

Source
Expand description

Reliability layer for the Offline Protocol SDK.

This crate provides ACK management, retry queuing with exponential backoff, message deduplication, and ACK optimization for large networks.

All code in this crate is 100% safe Rust with no unsafe blocks.

Re-exports§

pub use ack_manager::AckConfig;
pub use ack_manager::AckEvictionInfo;
pub use ack_manager::AckManager;
pub use ack_optimization::AckOptimizationConfig;
pub use ack_optimization::AckOptimizer;
pub use ack_optimization::AggregatedAck;
pub use ack_optimization::PiggybackAckData;
pub use deduplicator::Deduplicator;
pub use deduplicator::DeduplicatorConfig;
pub use deduplicator::DeduplicatorMode;
pub use deduplicator::DeduplicatorStats;
pub use error::Error;
pub use error::Result;
pub use relay_seen::RelaySeenCache;
pub use relay_seen::RelaySeenConfig;
pub use relay_seen::SeenOutcome;
pub use relay_seen::DEFAULT_RELAY_SEEN_CAPACITY;
pub use relay_seen::DEFAULT_RELAY_SEEN_RETENTION_SECS;
pub use retry_queue::RetryConfig;
pub use retry_queue::RetryQueue;
pub use retry_queue::RetryQueueStats;

Modules§

ack_manager
ACK (acknowledgment) management for tracking pending acknowledgments.
ack_optimization
ACK optimization to prevent feedback loop amplification in large networks.
constants
Reliability layer constants.
deduplicator
Message deduplication using rotating bloom filters for O(1) memory.
error
Reliability layer errors.
relay_seen
Suppression cache for messages that have already been forwarded.
retry_queue
Retry queue with exponential backoff for message retries.