nu_plugin_core

Trait PluginEncoder

Source
pub trait PluginEncoder: Encoder<PluginInput> + Encoder<PluginOutput> {
    // Required method
    fn name(&self) -> &str;
}
Expand description

Encoding scheme that defines a plugin’s communication protocol with Nu

Required Methods§

Source

fn name(&self) -> &str

The name of the encoder (e.g., json)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§