livekit_data_stream/
lib.rs1#![doc = include_str!("../README.md")]
16
17mod incoming;
18mod info;
19mod outgoing;
20#[cfg(any(test, feature = "test-utils"))]
21mod test_utils;
22mod types;
23mod utf8_chunk;
24mod utils;
25
26pub mod api {
28 pub use crate::incoming::{
29 AnyStreamReader, ByteStreamReader, StreamCloser, StreamReader, TextStreamReader,
30 };
31 pub use crate::info::{ByteStreamInfo, TextStreamInfo};
32 pub use crate::outgoing::{
33 ByteStreamWriter, SendByteOptions, SendTextOptions, StreamByteOptions,
34 StreamProgressCallback, StreamTextOptions, StreamWriter, TextStreamWriter,
35 };
36 pub use crate::types::OperationType;
37 pub use crate::utils::{SendError, StreamError, StreamProgress, StreamResult};
38}
39
40pub mod backend {
42 pub use crate::types::{
44 ByteHeader, Chunk, CompressionType, ContentHeader, Header, OperationType, Packet, StreamId,
45 TextHeader, Trailer,
46 };
47
48 pub mod incoming {
50 pub use crate::incoming::{events::*, manager::*};
51 }
52
53 pub mod outgoing {
55 pub use crate::outgoing::manager::*;
56 }
57
58 #[cfg(any(test, feature = "test-utils"))]
59 pub use crate::test_utils::*;
60}