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.
ptwm_core::flavor::native
crates/ptwm-core/src/flavor/native.rs:1mod nativeNative 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.
ptwm_core::flavor::native::NativeExtension
crates/ptwm-core/src/flavor/native.rs:76pub struct NativeExtensionptwm_core::flavor::native::NativeSymbols
crates/ptwm-core/src/flavor/native.rs:37pub struct NativeSymbolsSymbol 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.
ptwm_core::flavor::native::PlaneCodecFn
crates/ptwm-core/src/flavor/native.rs:51pub type PlaneCodecFnptwm_core::flavor::native::PlaneCodecStatefulFn
crates/ptwm-core/src/flavor/native.rs:64pub type PlaneCodecStatefulFnState-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`).
ptwm_core::flavor::native::TransformFn
crates/ptwm-core/src/flavor/native.rs:74pub type TransformFnptwm_core::flavor::native::VerifiedToken
crates/ptwm-core/src/flavor/native.rs:19pub struct VerifiedTokenCapability token proving the caller verified the contribution's signature. Construct via `VerifiedToken::new_unchecked` only when the verifier returned Trusted.