Skip to main content

ReferenceLaws

Type Alias ReferenceLaws 

Source
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

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl DownloadLawFixture for ReferenceLaws

Source§

type Source = String

Represents the source the scenarios retrieve.
Source§

fn law_source(&self) -> Self::Source

Names the source the scenarios retrieve.
Source§

fn law_destination(&self) -> PathBuf

Names the path the scenarios publish at.
Source§

fn law_bytes(&self) -> Vec<u8> ⓘ

States the exact bytes the source denotes.
Source§

fn forget_law_resource(&mut self)

Forgets the resource, so retrieval fails before publication begins.
Source§

fn refuse_law_publication(&mut self)

Refuses publication, so an begun publication fails.
Source§

fn law_progress(&self) -> Vec<u64>

Observes recorded byte counts in emission order.
Source§

fn law_terminal_events(&self) -> usize

Counts recorded terminal events.
Source§

fn law_published(&self) -> Option<Vec<u8>>

Observes bytes published at the scenario destination.
Source§

fn law_abandoned(&self) -> usize

Counts publications abandoned without reaching their final path.
Source§

impl ExtractionLawFixture for ReferenceLaws

Source§

fn accepted_law_url(&self) -> String

Names a URL the interpreter’s catalog accepts.
Source§

fn unsupported_law_url(&self) -> String

Names a URL no catalog entry accepts.
Source§

fn law_applied_extractors(&self) -> Vec<String>

Names the extractors applied so far, in application order.
Source§

impl MediaProgramLawFixture for ReferenceLaws

Source§

fn located_law_source(&self) -> String

Names a source the interpreter can retrieve.
Source§

fn law_extension(&self) -> String

Names the extension the scenario states on its format.
Source§

fn expected_law_bytes(&self) -> Vec<u8> ⓘ

States the exact bytes the source denotes.
Source§

fn law_published_bytes(&self, path: &Path) -> Option<Vec<u8>>

Observes bytes published at one path.