Skip to main content

PluginDeclared

Trait PluginDeclared 

Source
pub trait PluginDeclared:
    Send
    + Sync
    + 'static {
    const ID: &'static str;
    const VERSION: &'static str;
    const DESCRIPTION: &'static str;
    const PROVIDES: &'static [Node<WireDeclaration>];
    const REQUIRES: &'static [Node<Requirement>];
    const STREAMS: &'static [Entry];
    const CONTRIBUTIONS: &'static [Section] = _;
    const LISTENERS: &'static [Node<Entry>] = _;
    const OBSERVERS: &'static [Node<Entry>] = _;

    // Required method
    fn markers() -> Result<Vec<&'static [u8]>, Error>;
}

Required Associated Constants§

Source

const ID: &'static str

Source

const VERSION: &'static str

Source

const DESCRIPTION: &'static str

Source

const PROVIDES: &'static [Node<WireDeclaration>]

Source

const REQUIRES: &'static [Node<Requirement>]

Source

const STREAMS: &'static [Entry]

Provided Associated Constants§

Source

const CONTRIBUTIONS: &'static [Section] = _

Source

const LISTENERS: &'static [Node<Entry>] = _

Source

const OBSERVERS: &'static [Node<Entry>] = _

Required Methods§

Source

fn markers() -> Result<Vec<&'static [u8]>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§