Crate extism_pdk

source ·

Re-exports§

Modules§

  • Functions to read plug-in config
  • Types and functions for making HTTP requests
  • Functions to manipulate plug-in variables

Macros§

Structs§

  • Base64 string
  • The Error type, a wrapper around a dynamic error type.
  • HTTP request type Generic HTTP request structure
  • Json encoding
  • MemoryHandle describes where in memory a block of data is stored
  • Msgpack encoding
  • Protobuf encoding
  • Raw does no conversion, it just copies the memory directly. Note: This will only work for types that implement bytemuck::Pod

Enums§

Traits§

  • FromBytes is used to define how a type should be decoded when working with Extism memory. It is used for plugin output and host function input.
  • FromBytesOwned is similar to FromBytes but it doesn’t borrow from the input slice. FromBytes is automatically implemented for all types that implement FromBytesOwned.
  • ToBytes is used to define how a type should be encoded when working with Extism memory. It is used for plugin input and host function output.

Functions§

  • Get input bytes from host and convert into T
  • Get input bytes from host
  • Set output for host

Type Aliases§

  • The return type of a plugin function

Attribute Macros§

  • host_fn is used to define a host function that will be callable from within a plugin
  • plugin_fn is used to define a function that will be exported by a plugin

Derive Macros§