PTWM
flavor

ptwm_core::flavor::native

Native cdylib loader. Loads a .so / .dylib / .dll via libloading, probes for the per-kind ABI symbols, and exposes a thin handle the dispatcher uses to invoke each method.

ptwm_core::flavor::native

Native cdylib loader. Loads a .so / .dylib / .dll via libloading, probes for the per-kind ABI symbols, and exposes a thin handle the dispatcher uses to invoke each method.

rsmod

ptwm_core::flavor::native

crates/ptwm-core/src/flavor/native.rs:1
mod native

Native cdylib loader. Loads a `.so` / `.dylib` / `.dll` via libloading, probes for the per-kind ABI symbols, and exposes a thin handle the dispatcher uses to invoke each method.

Safety invariant: the caller MUST have verified the signature against the active trust state before calling `NativeExtension::load`. The `VerifiedToken` opaque type makes this an enforced precondition.
rstype

ptwm_core::flavor::native::NativeExtension

crates/ptwm-core/src/flavor/native.rs:76
pub struct NativeExtension
rstype

ptwm_core::flavor::native::NativeSymbols

crates/ptwm-core/src/flavor/native.rs:37
pub struct NativeSymbols

Symbol set discovered at load time. Each Option carries the raw fn pointer for the corresponding ABI export, or None if absent.

`libloading::Library` must outlive every fn pointer derived from it; we hold the Library inside NativeExtension and the fn pointers alongside.
rstype

ptwm_core::flavor::native::PlaneCodecFn

crates/ptwm-core/src/flavor/native.rs:51
pub type PlaneCodecFn
rstype

ptwm_core::flavor::native::PlaneCodecStatefulFn

crates/ptwm-core/src/flavor/native.rs:64
pub type PlaneCodecStatefulFn

State-aware decode symbol.

Signature: `(state_version, state_ptr, state_len, in_ptr, in_len, out_ptr, out_cap) -> i64`. Return convention matches `PlaneCodecFn` (non-negative output length, or one of the negative error codes decoded by `decode_rc`).
rstype

ptwm_core::flavor::native::TransformFn

crates/ptwm-core/src/flavor/native.rs:74
pub type TransformFn
rstype

ptwm_core::flavor::native::VerifiedToken

crates/ptwm-core/src/flavor/native.rs:19
pub struct VerifiedToken

Capability token proving the caller verified the contribution's signature. Construct via `VerifiedToken::new_unchecked` only when the verifier returned Trusted.