Skip to main content

SystemActivityMonitorServerHandler

Trait SystemActivityMonitorServerHandler 

Source
pub trait SystemActivityMonitorServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn get_next_event( &mut self, responder: Responder<GetNextEvent, ___T>, ) -> impl Future<Output = ()> + Send; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send { ... } }
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 = ()> + Send

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 = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§