polywrap_plugin 0.1.11

Core package to build plugins in rust to interact with Polywrap Client
Documentation
1
2
3
4
5
6
use polywrap_core::invoker::Invoker;

use crate::error::PluginError;

pub type PluginMethod =
    dyn Fn(&[u8], Option<&[u8]>, &dyn Invoker) -> Result<Vec<u8>, PluginError> + Send + Sync;