pub mod export;
pub mod format;
pub mod import;
#[derive(Debug, thiserror::Error)]
pub enum TransferError {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("base64 decode error: {0}")]
Base64(#[from] base64::DecodeError),
#[error("unsupported format version: {0}")]
UnsupportedVersion(u32),
#[error("storage error: {0}")]
Storage(#[from] crate::protocol::error::Error),
#[error("import conflict: stream '{0}' already exists")]
Conflict(String),
}