Struct PairingDeskBuilder
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§
§impl PairingDeskBuilderwhere
PairingDeskBuilder: Holds<PairingDeskSettings>,
impl PairingDeskBuilderwhere
PairingDeskBuilder: Holds<PairingDeskSettings>,
pub fn options(self, value: impl Into<PairingOptions>) -> PairingDeskBuilder
pub fn options(self, value: impl Into<PairingOptions>) -> PairingDeskBuilder
What the desk offers and how its codes are made.
pub fn limits(self, value: impl Into<DeskLimits>) -> PairingDeskBuilder
pub fn limits(self, value: impl Into<DeskLimits>) -> PairingDeskBuilder
The bounds on pending work and on guessing.
§impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
pub fn random(self, value: impl Into<Random>) -> PairingDeskBuilder
pub fn random(self, value: impl Into<Random>) -> PairingDeskBuilder
Sets the input random; the last call wins.
pub fn clock(self, value: impl Into<Clock>) -> PairingDeskBuilder
pub fn clock(self, value: impl Into<Clock>) -> PairingDeskBuilder
Sets the input clock; the last call wins.
pub fn fill(self, partial: Partial<PairingDeskSettings>) -> PairingDeskBuilder
pub fn fill(self, partial: Partial<PairingDeskSettings>) -> PairingDeskBuilder
Lays partial over what is set: only the keys it sets are taken, and the last
write of a key wins.
pub fn fill_from(
self,
source: &mut impl Source,
) -> Result<PairingDeskBuilder, FillError>
pub fn fill_from( self, source: &mut impl Source, ) -> Result<PairingDeskBuilder, FillError>
pub 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.
pub 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.
§impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl PairingDeskBuilderwhere
PairingDeskSettings: Describe,
pub 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§
§impl Configured for PairingDeskBuilderwhere
PairingDeskSettings: Describe,
impl Configured for PairingDeskBuilderwhere
PairingDeskSettings: Describe,
§type Settings = PairingDeskSettings
type Settings = PairingDeskSettings
§fn configured(&self) -> &dyn Inspect
fn configured(&self) -> &dyn Inspect
Inspect].