Skip to main content

ferogram_mtsender/
lib.rs

1// Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2//
3// ferogram: async Telegram MTProto client in Rust
4// https://github.com/ankit-chaubey/ferogram
5//
6// Licensed under either the MIT License or the Apache License 2.0.
7// See the LICENSE-MIT or LICENSE-APACHE file in this repository:
8// https://github.com/ankit-chaubey/ferogram
9//
10// Feel free to use, modify, and share this code.
11// Please keep this notice when redistributing.
12
13#![deny(unsafe_code)]
14
15mod errors;
16pub mod mtp_sender;
17mod pool;
18mod retry;
19mod sender;
20pub mod sender_task;
21
22pub use errors::{InvocationError, RpcError};
23pub use mtp_sender::MtpSender;
24pub use pool::{ConnSlot, DcPool};
25pub use retry::{AutoSleep, CircuitBreaker, NoRetries, RetryContext, RetryLoop, RetryPolicy};
26pub use sender::DcConnection;
27pub use sender_task::{FrameEvent, ReconnectRequest, RpcEnqueue, SenderHandle, spawn_sender_task};