moq-mux 0.4.0

Media muxers and demuxers for MoQ
Documentation
/// Errors from moq-mux operations.
///
/// Most variants are simple delegations to underlying layers — [`moq_lite::Error`] for
/// transport / pub-sub failures, [`hang::Error`] for catalog/codec parsing, and
/// [`CmafError`](crate::container::CmafError) for CMAF wire-format problems.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
	/// Error from the underlying moq-lite transport.
	#[error("moq: {0}")]
	Moq(#[from] moq_lite::Error),

	/// Error from the hang catalog/codec layer.
	#[error("hang: {0}")]
	Hang(#[from] hang::Error),

	/// Error parsing or building CMAF moof+mdat fragments.
	#[error("cmaf: {0}")]
	Cmaf(#[from] crate::container::CmafError),
}

/// A Result type alias for moq-mux operations.
pub type Result<T> = std::result::Result<T, Error>;