Skip to main content

AreaListing

Struct AreaListing 

Source
pub struct AreaListing { /* private fields */ }
Expand description

One area’s listing outcome for the multi-area planner.

The authoritative_ignoring_empty flag is the area’s completeness verdict before the empty-mirror guard (§5), which area_enumerated applies later against the final mode, so a copy-verb override that turns a Mirror area Copy re-scores an empty area correctly. It is only ever produced by area_authoritative via AreaListing::listed, so the #248 filter-loss guard cannot be bypassed by an out-of-band value.

Implementations§

Source§

impl AreaListing

Source

pub fn listed( kind: AreaKind, mode: SourceMode, clips: Vec<Clip>, complete: bool, any_filtered: bool, narrowed: bool, ) -> Self

A drained listing. The authority flag is computed from the raw listing signals via area_authoritative, so the #248 guard is unbypassable from outside the crate: the fields are private, and although in-crate tests may construct directly, every production path goes through this constructor.

Source

pub fn failed(kind: AreaKind, mode: SourceMode) -> Self

A failed or empty listing: it holds no clips and is never authoritative, so it suppresses deletion without ever vanishing from the sources (§6).

Source

pub fn unresolved_playlist(mode: SourceMode) -> Self

A playlist area whose listing could not be resolved or fetched (§6).

Source

pub fn clips(&self) -> &[Clip]

The area’s downloadable clips.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.