ibapi/subscriptions/mod.rs
1//! Subscription types for sync/async streaming data
2
3mod common;
4pub(crate) use common::{DecoderContext, StreamDecoder};
5
6#[cfg(feature = "sync")]
7pub mod sync;
8
9#[cfg(feature = "async")]
10pub mod r#async;
11
12// Re-export the appropriate subscription types based on feature
13#[cfg(feature = "sync")]
14pub use sync::{SharesChannel, SubscriptionIter, SubscriptionOwnedIter, SubscriptionTimeoutIter, SubscriptionTryIter};
15
16#[cfg(all(feature = "sync", not(feature = "async")))]
17pub use sync::Subscription;
18
19#[cfg(feature = "async")]
20pub use r#async::Subscription;