Skip to main content

DomainLocalServerHandler

Trait DomainLocalServerHandler 

Source
pub trait DomainLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required methods fn enable( &mut self, responder: Responder<Enable, ___T>, ) -> impl Future<Output = ()>; fn disable( &mut self, responder: Responder<Disable, ___T>, ) -> impl Future<Output = ()>; fn is_enabled( &mut self, responder: Responder<IsEnabled, ___T>, ) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
Expand description

A server handler for the Domain protocol.

See Domain for more details.

Required Methods§

Source

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

Enable the power domain.

Source

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

Disable the power domain.

Source

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

Returns true if the power domain is enabled.

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

Source§

async fn enable(&mut self, responder: Responder<Enable, ___T>)

Source§

async fn disable(&mut self, responder: Responder<Disable, ___T>)

Source§

async fn is_enabled(&mut self, responder: Responder<IsEnabled, ___T>)

Source§

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

Implementors§