Skip to main content

NodeControllerLocalClientHandler

Trait NodeControllerLocalClientHandler 

Source
pub trait NodeControllerLocalClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_bind(
        &mut self,
        request: Request<OnBind, ___T>,
    ) -> impl Future<Output = ()>;

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

A client handler for the NodeController protocol.

See NodeController for more details.

Required Methods§

Source

fn on_bind( &mut self, request: Request<OnBind, ___T>, ) -> impl Future<Output = ()>

Event that is triggered when the associated Node is bound to a driver. Replaced with WaitForDriver.

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

Source§

async fn on_bind(&mut self, request: Request<OnBind, ___T>)

Source§

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

Implementors§