Trait TimeoutReadExt

Source
pub trait TimeoutReadExt<H>
where H: Read + AsFd,
{ // Required method fn with_timeout<T: Into<Option<Duration>>>( self, timeout: T, ) -> TimeoutReader<H> ; }

Required Methods§

Source

fn with_timeout<T: Into<Option<Duration>>>(self, timeout: T) -> TimeoutReader<H>

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.

Implementors§

Source§

impl<H> TimeoutReadExt<H> for H
where H: Read + AsFd,