mod data_source;
pub(crate) mod fetch_file_from_http;
mod stream_rrd_from_http;
#[cfg(not(target_arch = "wasm32"))]
mod load_stdin;
pub use self::data_source::{
AuthErrorHandler, FromUriOptions, LogDataSource, LogDataSourceAnalytics,
};
#[derive(Clone, PartialEq, Eq)]
pub struct FileContents {
pub name: String,
pub bytes: std::sync::Arc<[u8]>,
}
impl std::fmt::Debug for FileContents {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("FileContents")
.field("name", &self.name)
.field("bytes", &format_args!("{} bytes", self.bytes.len()))
.finish()
}
}