Struct RuntimeExtensionHost
pub struct RuntimeExtensionHost { /* private fields */ }Expand description
Separate runtime extension host from observer plugin host.
Implementations§
§impl RuntimeExtensionHost
impl RuntimeExtensionHost
pub fn builder() -> RuntimeExtensionHostBuilder
pub fn builder() -> RuntimeExtensionHostBuilder
Starts a new host builder.
pub fn production_builder() -> RuntimeExtensionHostBuilder
pub fn production_builder() -> RuntimeExtensionHostBuilder
Starts a hardened host builder profile for production environments.
pub fn extension_names(&self) -> Vec<&'static str>
pub fn extension_names(&self) -> Vec<&'static str>
Returns extension identifiers in registration order.
pub fn active_extension_names(&self) -> Vec<&'static str>
pub fn active_extension_names(&self) -> Vec<&'static str>
Returns active extension identifiers after startup.
pub fn dropped_event_count(&self) -> u64
pub fn dropped_event_count(&self) -> u64
Returns total dropped packet events across all active runtime extensions.
pub fn dropped_event_counts_by_extension(&self) -> Vec<(&'static str, u64)>
pub fn dropped_event_counts_by_extension(&self) -> Vec<(&'static str, u64)>
Returns dropped packet event counts per active runtime extension.
pub fn dispatch_metrics_by_extension(
&self,
) -> Vec<RuntimeExtensionDispatchMetrics>
pub fn dispatch_metrics_by_extension( &self, ) -> Vec<RuntimeExtensionDispatchMetrics>
Returns dispatch telemetry snapshots per active runtime extension.
pub async fn startup(&self) -> RuntimeExtensionStartupReport
pub async fn startup(&self) -> RuntimeExtensionStartupReport
Runs startup hooks, validates manifests, and provisions extension resources.
pub fn on_observer_packet(&self, source: SocketAddr, bytes: &[u8])
pub fn on_observer_packet(&self, source: SocketAddr, bytes: &[u8])
Emits one observer ingress packet into runtime extension dispatch.
Emits one observer ingress packet with shared payload ownership.
Use this when ingress already owns packet bytes behind Arc<[u8]> to
avoid an additional payload allocation.
pub fn emit_extension_packet(
&self,
source: RuntimePacketSource,
bytes: Arc<[u8]>,
)
pub fn emit_extension_packet( &self, source: RuntimePacketSource, bytes: Arc<[u8]>, )
Emits one extension-resource packet into runtime extension dispatch.
pub async fn shutdown(&self)
pub async fn shutdown(&self)
Runs shutdown hooks and force-cancels lingering extension tasks afterwards.
Trait Implementations§
§impl Clone for RuntimeExtensionHost
impl Clone for RuntimeExtensionHost
§fn clone(&self) -> RuntimeExtensionHost
fn clone(&self) -> RuntimeExtensionHost
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeExtensionHost
impl !RefUnwindSafe for RuntimeExtensionHost
impl Send for RuntimeExtensionHost
impl Sync for RuntimeExtensionHost
impl Unpin for RuntimeExtensionHost
impl UnsafeUnpin for RuntimeExtensionHost
impl !UnwindSafe for RuntimeExtensionHost
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more