Trait hotg_rune_runtime::Capability[][src]

pub trait Capability: Send + Debug + 'static {
    fn generate(&mut self, buffer: &mut [u8]) -> Result<usize, Error>;
fn set_parameter(
        &mut self,
        name: &str,
        value: Value
    ) -> Result<(), ParameterError>; }

Required methods

Generate the desired input, writing it to the provided buffer and returning the number of bytes written.

Implementors