PTWM
ptwm_core

ptwm_core::dispatch

PPG codec dispatch. Codecs declare capabilities via PlaneCodec::accepts and PlaneCodec::priority_for; this module filters and ranks them for a given PlaneDescriptor.

ptwm_core::dispatch

PPG codec dispatch. Codecs declare capabilities via PlaneCodec::accepts and PlaneCodec::priority_for; this module filters and ranks them for a given PlaneDescriptor.

rsmod

ptwm_core::dispatch

crates/ptwm-core/src/dispatch.rs:1
mod dispatch

PPG codec dispatch. Codecs declare capabilities via [`PlaneCodec::accepts`] and [`PlaneCodec::priority_for`]; this module filters and ranks them for a given [`PlaneDescriptor`].

rsfn

ptwm_core::dispatch::dispatch

crates/ptwm-core/src/dispatch.rs:13
pub fn dispatch(d: &PlaneDescriptor) -> Vec<CodecId>

Return the ordered list of codec IDs that accept `descriptor`, sorted by descending priority. The highest-priority codec sits at index 0.

Codecs that reject `descriptor` drop out. The list is never empty: Identity always accepts and serves as the universal fallback.