1use alloc::string::String;
3
4#[derive(Debug, thiserror::Error)]
6#[non_exhaustive]
7pub enum Error {
8 #[error("wall-clock conversion requires a TimeAnchor, but none was set")]
10 MissingAnchor,
11 #[error("emsg scheme {scheme:?} is not a SCTE-35 carriage scheme")]
14 UnsupportedScheme { scheme: String },
15 #[error("SCTE-35: {0}")]
17 Scte35(#[from] scte35_splice::Error),
18 #[error("emsg: {0}")]
20 Emsg(#[from] mp4_emsg::Error),
21 #[error("DATERANGE parse: {0}")]
23 AttrParse(String),
24}
25
26pub type Result<T> = core::result::Result<T, Error>;