pub trait ConnectionRequirementsProvider {
// Provided method
fn connection_requirements(&self) -> ConnectionRequirements { ... }
}Expand description
Provides pre-connect ConnectionRequirements for a parsed command.
This is implemented by hand for the top-level Cli/TopLevelCommands dispatch
and the auth subcommand (both hand-written, not codegenerated — see
grep -r TopLevelCommands). Should more commands need pre-connect behavior
(e.g. a hypothetical purely-local osc api-version), a template-level
connection_requirements() hook in the code generator would be the long-term
fix; for now the mechanism is only wired where it is needed.
Provided Methods§
Sourcefn connection_requirements(&self) -> ConnectionRequirements
fn connection_requirements(&self) -> ConnectionRequirements
Return the connection requirements for this parsed command.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".