Skip to main content

DeviceIteratorLocalServerHandler

Trait DeviceIteratorLocalServerHandler 

Source
pub trait DeviceIteratorLocalServerHandler<___T: Transport = Channel> {
    // Required method
    fn get_next(
        &mut self,
        responder: Responder<GetNext, ___T>,
    ) -> impl Future<Output = ()>;
}
Expand description

A server handler for the DeviceIterator protocol.

See DeviceIterator for more details.

Required Methods§

Source

fn get_next( &mut self, responder: Responder<GetNext, ___T>, ) -> impl Future<Output = ()>

Returns the next batch of active devices.

Returns an empty vector when all existing devices have been iterated through. The client should then close this channel and rely on the DeviceListener for subsequent events.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<___H, ___T> DeviceIteratorLocalServerHandler<___T> for Local<___H>
where ___H: DeviceIteratorServerHandler<___T>, ___T: Transport,

Source§

async fn get_next(&mut self, responder: Responder<GetNext, ___T>)

Implementors§