Skip to main content

WaitBands

Type Alias WaitBands 

Source
pub type WaitBands = Bands<WaitPlan>;
Expand description

The requested bands, as the lever states them.

Aliased Type§

pub struct WaitBands { /* private fields */ }

Implementations§

Source§

impl WaitBands

Source

pub fn parse(text: &str) -> Result<Self>

Parse the lever text (module docs).

§Errors

InvalidArgument naming the text and the first thing wrong with it, including every WaitPlan::parse refusal of a band’s plan.

Source

pub fn label(&self) -> String

The bands as parse reads them (round-trips exactly).

Source

pub fn resolve(&self, caps: &HostCaps) -> Bands<Resolved>

Each band resolved against caps (WaitPlan::resolve); pure.