Trait async_dnssd::StreamTimeoutExt

source ·
pub trait StreamTimeoutExt: Stream + Sized {
    // Required method
    fn timeout(self, duration: Duration) -> TimeoutStream<Self>;
}
Expand description

Stream extension to simplify building TimeoutStream

Required Methods§

source

fn timeout(self, duration: Duration) -> TimeoutStream<Self>

Create new TimeoutStream

Object Safety§

This trait is not object safe.

Implementors§