pub struct PairingDeskBuilderwhere
PairingDeskSettings: Describe,{ /* private fields */ }Expand description
Builds a PairingDesk from its settings, filled in layers, and the inputs it takes. build lists everything still missing at once.
Implementations§
Source§impl PairingDeskBuilderwhere
Self: Holds<PairingDeskSettings>,
impl PairingDeskBuilderwhere
Self: Holds<PairingDeskSettings>,
Sourcepub fn options(self, value: impl Into<PairingOptions>) -> Self
pub fn options(self, value: impl Into<PairingOptions>) -> Self
What the desk offers and how its codes are made.
Sourcepub fn limits(self, value: impl Into<DeskLimits>) -> Self
pub fn limits(self, value: impl Into<DeskLimits>) -> Self
The bounds on pending work and on guessing.
Source§impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
Sourcepub fn random(self, value: impl Into<Random>) -> Self
pub fn random(self, value: impl Into<Random>) -> Self
Sets the input random; the last call wins.
Sourcepub fn fill(self, partial: Partial<PairingDeskSettings>) -> Self
pub fn fill(self, partial: Partial<PairingDeskSettings>) -> Self
Lays partial over what is set: only the keys it sets are taken, and the last
write of a key wins.
Sourcepub fn parts(self) -> Result<PairingDeskParts, Missing>
pub fn parts(self) -> Result<PairingDeskParts, Missing>
The parts: the settings built, every required input present and every optional input as given. A second terminal (one that builds a different value from the same parts) is written over this.
§Errors
Everything that is missing, at once: the same Missing
that build gives.
Sourcepub fn build(
self,
) -> Result<PairingDesk, BuildError<<PairingDesk as TryFrom<PairingDeskParts>>::Error>>
pub fn build( self, ) -> Result<PairingDesk, BuildError<<PairingDesk as TryFrom<PairingDeskParts>>::Error>>
The built value, or everything that is missing: every required setting and every required input, at once.
§Errors
What is missing, or for a fallible build the error of the conversion.
Source§impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
Sourcepub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
Every setting that differs from its default, as the builder would build it.
Trait Implementations§
Source§impl Check<PairingDeskBuilder> for Profilewhere
PairingDeskSettings: Describe,
impl Check<PairingDeskBuilder> for Profilewhere
PairingDeskSettings: Describe,
Source§fn check(&self, subject: &PairingDeskBuilder, report: &mut Report)
fn check(&self, subject: &PairingDeskBuilder, report: &mut Report)
subject, pushing a Finding per expectation.Source§impl Configured for PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl Configured for PairingDeskBuilderwhere
PairingDeskSettings: Describe,
Source§type Settings = PairingDeskSettings
type Settings = PairingDeskSettings
Source§fn configured(&self) -> &dyn Inspect
fn configured(&self) -> &dyn Inspect
Inspect].