pub struct PluginRegistry { /* private fields */ }Expand description
Structured report for dynamic plugins loaded from host-provided paths.
Implementations§
Source§impl PluginRegistry
impl PluginRegistry
Sourcepub fn inspect_decoder_support_development(
paths: impl IntoIterator<Item = impl AsRef<Path>>,
request: DecoderPluginMatchRequest,
) -> Self
pub fn inspect_decoder_support_development( paths: impl IntoIterator<Item = impl AsRef<Path>>, request: DecoderPluginMatchRequest, ) -> Self
Inspects unsigned raw native libraries under explicit development policy.
Sourcepub fn inspect_frame_processor_support_development(
paths: impl IntoIterator<Item = impl AsRef<Path>>,
) -> Self
pub fn inspect_frame_processor_support_development( paths: impl IntoIterator<Item = impl AsRef<Path>>, ) -> Self
Inspects unsigned raw native libraries under explicit development policy.
Sourcepub fn inspect_frame_processor_support_artifacts(
artifacts: impl IntoIterator<Item = NativePluginArtifact>,
) -> Self
pub fn inspect_frame_processor_support_artifacts( artifacts: impl IntoIterator<Item = NativePluginArtifact>, ) -> Self
Inspects host-verified native artifacts and binds each declared plugin identity to the Root ABI identity before exposing capability records.
Sourcepub fn inspect_source_normalizer_support_development(
paths: impl IntoIterator<Item = impl AsRef<Path>>,
) -> Self
pub fn inspect_source_normalizer_support_development( paths: impl IntoIterator<Item = impl AsRef<Path>>, ) -> Self
Inspects unsigned raw native libraries under explicit development policy.
Sourcepub fn inspect_source_normalizer_support_artifacts(
artifacts: impl IntoIterator<Item = NativePluginArtifact>,
) -> Self
pub fn inspect_source_normalizer_support_artifacts( artifacts: impl IntoIterator<Item = NativePluginArtifact>, ) -> Self
Inspects host-verified native artifacts and binds each declared plugin identity to the Root ABI identity before exposing capability records.
pub fn from_records(records: Vec<PluginDiagnosticRecord>) -> Self
Sourcepub fn from_records_with_references(
entries: impl IntoIterator<Item = (PluginDiagnosticRecord, Option<PluginReference>)>,
) -> Self
pub fn from_records_with_references( entries: impl IntoIterator<Item = (PluginDiagnosticRecord, Option<PluginReference>)>, ) -> Self
Builds a diagnostic-only registry from records with their validated canonical references already attached.
This constructor does not load plugin instances. It is intended for host adapters and synthetic fixtures that have already established the same identity mapping produced by native or WASM inspection.
Sourcepub fn load_native_development(
paths: impl IntoIterator<Item = impl AsRef<Path>>,
) -> Result<Self, PluginRegistryBuildError>
pub fn load_native_development( paths: impl IntoIterator<Item = impl AsRef<Path>>, ) -> Result<Self, PluginRegistryBuildError>
Loads unsigned raw native libraries under explicit development policy.
pub fn load_native_artifacts( artifacts: impl IntoIterator<Item = NativePluginArtifact>, ) -> Result<Self, PluginRegistryBuildError>
pub fn registered_interfaces(&self) -> &[RegisteredPluginInterface]
pub fn post_download_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn pipeline_event_hook_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn benchmark_sink_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn native_decoder_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn frame_processor_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn audio_processor_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn source_packet_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn source_resource_references( &self, ) -> Result<Vec<PluginReference>, PluginSelectionError>
pub fn resolve_post_download( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn PostDownloadProcessor>, PluginSelectionError>
pub fn resolve_pipeline_event_hook( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn PipelineEventHook>, PluginSelectionError>
Sourcepub fn resolve_pipeline_event_hook_in_scope(
&self,
reference: &PluginReference,
_scope: &PluginScope,
) -> Result<ResolvedPluginCapability<dyn PipelineEventHook>, PluginSelectionError>
pub fn resolve_pipeline_event_hook_in_scope( &self, reference: &PluginReference, _scope: &PluginScope, ) -> Result<ResolvedPluginCapability<dyn PipelineEventHook>, PluginSelectionError>
Resolves one EventHook and binds a fresh WASM worker/session to scope.
Native capabilities keep their existing trusted owner semantics.
pub fn resolve_benchmark_sink( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn BenchmarkSink>, PluginSelectionError>
Sourcepub fn resolve_benchmark_sink_in_scope(
&self,
reference: &PluginReference,
_scope: &PluginScope,
) -> Result<ResolvedPluginCapability<dyn BenchmarkSink>, PluginSelectionError>
pub fn resolve_benchmark_sink_in_scope( &self, reference: &PluginReference, _scope: &PluginScope, ) -> Result<ResolvedPluginCapability<dyn BenchmarkSink>, PluginSelectionError>
Resolves one BenchmarkSink and binds a fresh WASM worker/session to
scope. Native capabilities keep their existing trusted owner semantics.
pub fn resolve_native_decoder( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn NativeDecoderPluginFactory>, PluginSelectionError>
pub fn resolve_frame_processor( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn FrameProcessorPluginFactory>, PluginSelectionError>
pub fn resolve_audio_processor( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn AudioProcessorPluginFactory>, PluginSelectionError>
pub fn resolve_source_packet( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn SourceNormalizerPacketPluginFactory>, PluginSelectionError>
pub fn resolve_source_resource( &self, reference: &PluginReference, ) -> Result<ResolvedPluginCapability<dyn SourceNormalizerResourcePluginFactory>, PluginSelectionError>
pub fn records(&self) -> &[PluginDiagnosticRecord]
Sourcepub fn reference_for_record(
&self,
record: &PluginDiagnosticRecord,
) -> Option<&PluginReference>
pub fn reference_for_record( &self, record: &PluginDiagnosticRecord, ) -> Option<&PluginReference>
Returns the canonical plugin reference associated with an inspection record.
pub fn best_decoder_for( &self, request: &DecoderPluginMatchRequest, ) -> Option<&PluginDiagnosticRecord>
pub fn best_native_decoder_for( &self, request: &DecoderPluginMatchRequest, ) -> Option<&PluginDiagnosticRecord>
pub fn best_pcm_audio_decoder_for( &self, request: &DecoderPluginMatchRequest, ) -> Option<&PluginDiagnosticRecord>
pub fn supports_decoder(&self, request: &DecoderPluginMatchRequest) -> bool
pub fn supports_native_decoder( &self, request: &DecoderPluginMatchRequest, ) -> bool
pub fn supports_pcm_audio_decoder( &self, request: &DecoderPluginMatchRequest, ) -> bool
pub fn frame_processor_supported_plugin_names(&self) -> Vec<&str>
pub fn source_normalizer_supported_plugin_names(&self) -> Vec<&str>
pub fn best_source_normalizer(&self) -> Option<&PluginDiagnosticRecord>
pub fn best_source_normalizer_packet(&self) -> Option<&PluginDiagnosticRecord>
pub fn best_source_normalizer_packet_for_profile( &self, runtime_profile: &str, ) -> Option<&PluginDiagnosticRecord>
pub fn best_source_normalizer_resource(&self) -> Option<&PluginDiagnosticRecord>
pub fn best_source_normalizer_resource_for_profile( &self, runtime_profile: &str, ) -> Option<&PluginDiagnosticRecord>
pub fn best_source_normalizer_for_profile( &self, runtime_profile: &str, ) -> Option<&PluginDiagnosticRecord>
pub fn decoder_supported_plugin_names(&self) -> Vec<&str>
pub fn diagnostic_notes(&self) -> Vec<String>
pub fn report(&self) -> PluginRegistryReport
Trait Implementations§
Source§impl Clone for PluginRegistry
impl Clone for PluginRegistry
Source§fn clone(&self) -> PluginRegistry
fn clone(&self) -> PluginRegistry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more