1mod data_source;
10mod stream_rrd_from_http;
11
12#[cfg(not(target_arch = "wasm32"))]
13mod load_stdin;
14
15pub use self::data_source::{AuthErrorHandler, LogDataSource, LogDataSourceAnalytics};
16
17#[derive(Clone, PartialEq, Eq)]
25pub struct FileContents {
26 pub name: String,
27 pub bytes: std::sync::Arc<[u8]>,
28}
29
30impl std::fmt::Debug for FileContents {
31 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
32 f.debug_struct("FileContents")
33 .field("name", &self.name)
34 .field("bytes", &format_args!("{} bytes", self.bytes.len()))
35 .finish()
36 }
37}