Crate nu_plugin_core

Source
Expand description

Functionality and types shared between the plugin and the engine, other than protocol types.

If you are writing a plugin, you probably don’t need this crate. We will make fewer guarantees for the stability of the interface of this crate than for nu_plugin.

Modules§

Structs§

Enums§

Traits§

  • Encoder for a specific message type. Usually implemented on PluginInput and PluginOutput.
  • Values that can contain a ShellError to signal an error has occurred.
  • An interface provides an API for communicating with a plugin or the engine and facilitates stream I/O. See PluginInterface in nu-plugin-engine for the API from the engine side to a plugin, or EngineInterface in nu-plugin for the API from the plugin side to the engine.
  • An interface manager handles I/O and state management for communication between a plugin and the engine. See PluginInterfaceManager in nu-plugin-engine for communication from the engine side to a plugin, or EngineInterfaceManager in nu-plugin for communication from the plugin side to the engine.
  • Encoding scheme that defines a plugin’s communication protocol with Nu
  • Read input/output from the stream.
  • Write input/output to the stream.