Skip to main content

PluginEncoder

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".

Implementors§