pub type ReferenceLaws = LawEnv<MediaSyntax, ProcessingSyntax, ReferenceExtractorRegistry, ReferenceDownloadEnv, ReferenceYoutubeEnv, ManagerState>;Expand description
Names the reference composition every law scenario runs against.
Aliased Type§
pub struct ReferenceLaws { /* private fields */ }Trait Implementations§
Source§impl Default for ReferenceLaws
impl Default for ReferenceLaws
Source§impl DownloadLawFixture for ReferenceLaws
impl DownloadLawFixture for ReferenceLaws
Source§fn law_source(&self) -> Self::Source
fn law_source(&self) -> Self::Source
Names the source the scenarios retrieve.
Source§fn law_destination(&self) -> PathBuf
fn law_destination(&self) -> PathBuf
Names the path the scenarios publish at.
Source§fn forget_law_resource(&mut self)
fn forget_law_resource(&mut self)
Forgets the resource, so retrieval fails before publication begins.
Source§fn refuse_law_publication(&mut self)
fn refuse_law_publication(&mut self)
Refuses publication, so an begun publication fails.
Source§fn law_progress(&self) -> Vec<u64>
fn law_progress(&self) -> Vec<u64>
Observes recorded byte counts in emission order.
Source§fn law_terminal_events(&self) -> usize
fn law_terminal_events(&self) -> usize
Counts recorded terminal events.
Source§fn law_published(&self) -> Option<Vec<u8>>
fn law_published(&self) -> Option<Vec<u8>>
Observes bytes published at the scenario destination.
Source§fn law_abandoned(&self) -> usize
fn law_abandoned(&self) -> usize
Counts publications abandoned without reaching their final path.
Source§impl ExtractionLawFixture for ReferenceLaws
impl ExtractionLawFixture for ReferenceLaws
Source§fn accepted_law_url(&self) -> String
fn accepted_law_url(&self) -> String
Names a URL the interpreter’s catalog accepts.
Source§fn unsupported_law_url(&self) -> String
fn unsupported_law_url(&self) -> String
Names a URL no catalog entry accepts.
Source§fn law_applied_extractors(&self) -> Vec<String>
fn law_applied_extractors(&self) -> Vec<String>
Names the extractors applied so far, in application order.
Source§impl MediaProgramLawFixture for ReferenceLaws
impl MediaProgramLawFixture for ReferenceLaws
Source§fn located_law_source(&self) -> String
fn located_law_source(&self) -> String
Names a source the interpreter can retrieve.
Source§fn law_extension(&self) -> String
fn law_extension(&self) -> String
Names the extension the scenario states on its format.