Skip to main content

CliReader

Trait CliReader 

Source
pub trait CliReader {
    // Required method
    fn read(
        &self,
        binding: &Binding,
        args: &[String],
        cancel: &AtomicBool,
    ) -> Result<Value, TaskFailure>;

    // Provided method
    fn identity_scope(&self, _binding: &Binding) -> Option<String> { ... }
}
Expand description

The seam replaces only the external CLI, not task semantics.

Required Methods§

Source

fn read( &self, binding: &Binding, args: &[String], cancel: &AtomicBool, ) -> Result<Value, TaskFailure>

Provided Methods§

Source

fn identity_scope(&self, _binding: &Binding) -> Option<String>

Identity reuse is opt-in because launchers may select different accounts.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§