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§
Sourcefn get_next_event(
&mut self,
responder: Responder<GetNextEvent, ___T>,
) -> impl Future<Output = ()>
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§
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".