Skip to main content

NamespaceLocalServerHandler

Trait NamespaceLocalServerHandler 

Source
pub trait NamespaceLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn create(
        &mut self,
        request: Request<Create, ___T>,
        responder: Responder<Create, ___T>,
    ) -> impl Future<Output = ()>;
    fn create2(
        &mut self,
        request: Request<Create2, ___T>,
        responder: Responder<Create2, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A server handler for the Namespace protocol.

See Namespace for more details.

Required Methods§

Source

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

Source

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

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

Implementations on Foreign Types§

Source§

impl<___H, ___T> NamespaceLocalServerHandler<___T> for Local<___H>
where ___H: NamespaceServerHandler<___T>, ___T: Transport,

Source§

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

Source§

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

Source§

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

Implementors§