Skip to main content

SysSuspendLocalServerHandler

Trait SysSuspendLocalServerHandler 

Source
pub trait SysSuspendLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn callback( &mut self, request: Request<Callback, ___T>, responder: Responder<Callback, ___T>, ) -> impl Future<Output = ()>; }
Expand description

A server handler for the SysSuspend protocol.

See SysSuspend for more details.

Required Methods§

Source

fn callback( &mut self, request: Request<Callback, ___T>, responder: Responder<Callback, ___T>, ) -> impl Future<Output = ()>

Invoked by the platform bus when its suspend hook is called.

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> SysSuspendLocalServerHandler<___T> for Local<___H>
where ___H: SysSuspendServerHandler<___T>, ___T: Transport,

Source§

async fn callback( &mut self, request: Request<Callback, ___T>, responder: Responder<Callback, ___T>, )

Implementors§