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§
Sourcefn enable(
&mut self,
responder: Responder<Enable, ___T>,
) -> impl Future<Output = ()>
fn enable( &mut self, responder: Responder<Enable, ___T>, ) -> impl Future<Output = ()>
Enable the power domain.
Sourcefn disable(
&mut self,
responder: Responder<Disable, ___T>,
) -> impl Future<Output = ()>
fn disable( &mut self, responder: Responder<Disable, ___T>, ) -> impl Future<Output = ()>
Disable the power domain.
Sourcefn is_enabled(
&mut self,
responder: Responder<IsEnabled, ___T>,
) -> impl Future<Output = ()>
fn is_enabled( &mut self, responder: Responder<IsEnabled, ___T>, ) -> impl Future<Output = ()>
Returns true if the power domain is enabled.
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", so this trait is not object safe.