Skip to main content

DomainServerHandler

Trait DomainServerHandler 

Source
pub trait DomainServerHandler<___T: Transport = Channel> {
    // Required methods
    fn enable(
        &mut self,
        responder: Responder<Enable, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn disable(
        &mut self,
        responder: Responder<Disable, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn is_enabled(
        &mut self,
        responder: Responder<IsEnabled, ___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 Domain protocol.

See Domain for more details.

Required Methods§

Source

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

Enable the power domain.

Source

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

Disable the power domain.

Source

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

Returns true if the power domain is enabled.

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", so this trait is not object safe.

Implementors§