Expand description
mediasan-common is a common library shared by the mediasan media format “sanitizers”.
Re-exports§
pub use error::Error;pub use error::Report;pub use error::Result;pub use error::ResultExt;pub use async_skip::AsyncSkipExt;
Modules§
- async_
skip - Utility functions for the
AsyncSkiptrait. - error
- Error types returned by the public API.
- macros
- Common macros used by the
mediasancrates. - parse
- Unstable API for parsing media files.
- sync
- Adapter utilities to run carefully designed async code in a sync context.
- util
- Common utilities used by the
mediasancrates.
Macros§
- bail_
attach - Return an
Errcontaining$erras aReportwith optional$attachments. - ensure_
attach - Ensure
$condistrue, or return anErrcontaining$erras aReportwith optional$attachments. - ensure_
matches_ attach - Ensure
$exprmatches$pat, or return anErrcontaining$erras aReportwith optional$attachments. - report_
attach - Create a
Reportcontaning$errwith optional$attachments.
Structs§
- Input
Span - A pointer to a span in the given input.
- Seek
Skip Adapter - An adapter implementing
Skip/AsyncSkipfor all types implementing [Seek]/[AsyncSeek].