1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5pub mod auth;
6pub mod client;
7#[cfg(feature = "tokio")]
8mod codec;
9pub mod error;
10mod framing;
11mod headers_util;
12pub mod interleaved;
13#[cfg(feature = "tokio")]
14pub mod io;
15mod limits;
16mod rfc2326_lex;
17pub mod server;
18pub mod session_header;
19pub mod state;
20pub mod transport;
21
22pub use auth::{Authenticator, Credentials};
23pub use client::{ClientEvent, ClientSession, HandleOutcome, RtpInfoEntry};
24pub use error::{Error, Result};
25pub use interleaved::InterleavedFrame;
26#[cfg(feature = "tokio")]
27pub use io::{
28 AsyncRtspClient, AsyncRtspServer, RTSP_DEFAULT_PORT, RTSPS_DEFAULT_PORT, RtspTimeouts,
29};
30pub use server::{ServerEvent, ServerSession};
31pub use session_header::SessionHeader;
32pub use state::SessionState;
33pub use transport::{Delivery, LowerTransport, Transport, TransportMode, TransportSpec};
34
35pub use rtsp_types::{Method, StatusCode};
37
38pub const RFC: &str = "RFC 2326";