Skip to main content

SystemActivityMonitorLocalServerHandler

Trait SystemActivityMonitorLocalServerHandler 

Source
pub trait SystemActivityMonitorLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn get_next_event( &mut self, responder: Responder<GetNextEvent, ___T>, ) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
Expand description

A server handler for the SystemActivityMonitor protocol.

See SystemActivityMonitor for more details.

Required Methods§

Source

fn get_next_event( &mut self, responder: Responder<GetNextEvent, ___T>, ) -> impl Future<Output = ()>

Blocks until a system activity event (e.g. CPU boost starting or ending) occurs, returning the event.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<___H, ___T> SystemActivityMonitorLocalServerHandler<___T> for Local<___H>
where ___H: SystemActivityMonitorServerHandler<___T>, ___T: Transport,

Source§

async fn get_next_event(&mut self, responder: Responder<GetNextEvent, ___T>)

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§