red4ext_rs

Trait PluginOps

Source
pub trait PluginOps: Plugin + Sealed {
    // Required method
    fn env() -> &'static SdkEnv;
}
Expand description

A set of useful operations that can be performed on a plugin.

Required Methods§

Source

fn env() -> &'static SdkEnv

Retrieves a statically initialized reference to the plugin environment. It can be used to log messages, add state listeners, and attach hooks.

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§

Source§

impl<P> PluginOps for P
where P: Plugin,