Skip to main content

Module

Trait Module 

Source
pub trait Module:
    Send
    + Sync
    + Sized
    + 'static {
    // Required methods
    fn manifest(&self) -> Manifest;
    fn register(&self, ops: &mut Ops<Self>);
}
Expand description

A module: an engine plus its operation contract, served by the kit.

Required Methods§

Source

fn manifest(&self) -> Manifest

How hosts route to, scale and present this module.

Source

fn register(&self, ops: &mut Ops<Self>)

Registers every operation, each with the feature it needs.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§