Skip to main content

SampleSinkLocalServerHandler

Trait SampleSinkLocalServerHandler 

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

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

A server handler for the SampleSink protocol.

See SampleSink for more details.

Required Methods§

Source

fn on_sample_readied( &mut self, request: Request<OnSampleReadied, ___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> SampleSinkLocalServerHandler<___T> for Local<___H>
where ___H: SampleSinkServerHandler<___T>, ___T: Transport,

Source§

async fn on_sample_readied(&mut self, request: Request<OnSampleReadied, ___T>)

Source§

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

Implementors§