Skip to main content

Crate moq_archive

Crate moq_archive 

Source
Expand description

Versioned hang recording objects on any object_store::ObjectStore.

The crate owns the portable layout and codecs: percent-encoded track names, .info JSON, the binary segment envelope, and put/get/list/delete. Callers that need runtime dispatch supply Arc<dyn ObjectStore>; the archive API itself stays generic.

Group bounds are finite inclusive ranges in first-to-last order:

let key = moq_archive::Key::groups("video", 5..=7)?;
assert_eq!(key.track(), "video");

Re-exports§

pub use info::Info;
pub use segment::Frame;
pub use segment::Group;
pub use segment::Object;
pub use store::Store;
pub use object_store;

Modules§

info
segment
store

Enums§

Error
Errors from encoding, decoding, or storing recording objects.
Key
A recording object key under an application prefix.

Constants§

ID_MAX
Largest group, segment, or timestamp value the format allows (2^53 - 1).
VERSION
Recording format version written into .info and the binary envelope.

Type Aliases§

Result
A Result using this crate’s Error.