PTWM
flavor

ptwm_core::flavor::third_party

Bridge adapter that exposes a third-party DispatchedPlaneCodec (native or WASM, dispatched by canonical id) as if it were an in-tree crate::codec::PlaneCodec. The container decode loop can then treat every plane uniformly through a single Box<dyn PlaneCodec>.

ptwm_core::flavor::third_party

Bridge adapter that exposes a third-party DispatchedPlaneCodec (native or WASM, dispatched by canonical id) as if it were an in-tree crate::codec::PlaneCodec. The container decode loop can then treat every plane uniformly through a single Box<dyn PlaneCodec>.

rsmod

ptwm_core::flavor::third_party

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

Bridge adapter that exposes a third-party `DispatchedPlaneCodec` (native or WASM, dispatched by canonical id) as if it were an in-tree `crate::codec::PlaneCodec`. The container decode loop can then treat every plane uniformly through a single `Box<dyn PlaneCodec>`.

Scope: decode-only. The flat ABI used by third-party codecs is input-bytes → output-bytes (with an optional `state_bytes` blob on decode), which doesn't expose the structured `Encoded` return shape the in-tree trial-encode loop expects. `encode` therefore returns `Err(InvalidContainer)` — v1 third-party codecs participate only at decode time. Reaching `encode` here would mean the trial-encode loop reached a third-party codec, which is itself a bug.
rstype

ptwm_core::flavor::third_party::ThirdPartyPlaneCodec

crates/ptwm-core/src/flavor/third_party.rs:22
pub struct ThirdPartyPlaneCodec