Skip to main content

irtt_client/
lib.rs

1#![cfg_attr(
2    not(all(target_os = "linux", feature = "ancillary")),
3    forbid(unsafe_code)
4)]
5#![cfg_attr(all(target_os = "linux", feature = "ancillary"), deny(unsafe_code))]
6
7mod client;
8mod config;
9mod error;
10mod event;
11mod managed;
12mod metadata;
13mod probe;
14mod receive;
15mod session;
16mod socket;
17mod socket_options;
18mod timing;
19
20pub use client::Client;
21pub use config::{
22    ClientConfig, NegotiationPolicy, RecvBudget, RunMode, SocketConfig, MAX_DSCP_CODEPOINT,
23    MAX_SERVER_FILL_BYTES, MAX_TTL, MAX_UDP_PAYLOAD_LENGTH,
24};
25pub use error::{ClientError, EventSubscriptionError};
26pub use event::{
27    ClientEvent, OneWayDelaySample, OpenOutcome, PacketMeta, ReceivedStatsSample, RttSample,
28    ServerTiming, SignedDuration, WarningKind,
29};
30pub use managed::{
31    CancellationToken, EventHub, EventSubscription, ManagedClient, ManagedClientSession,
32    SessionEndReason, SessionOutcome, SubscriberConfig, SubscriberOverflow,
33};
34pub use session::NegotiatedParams;
35pub use timing::ClientTimestamp;