Skip to main content

InputModeProvider

Trait InputModeProvider 

Source
pub trait InputModeProvider:
    Debug
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn version(&self) -> &str;
    fn method(&self) -> EvidenceMethod;
    fn observe(
        &self,
        context: &Context,
    ) -> Result<ProviderTerminalInputModes, String>;
}
Expand description

Closed provider family for production terminal parser configuration.

Required Methods§

Source

fn id(&self) -> &str

Stable provider identity frozen into the session contract.

Source

fn version(&self) -> &str

Provider implementation version.

Source

fn method(&self) -> EvidenceMethod

How the application obtains parser evidence.

Source

fn observe( &self, context: &Context, ) -> Result<ProviderTerminalInputModes, String>

Exact production parser configuration for this committed revision.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§