Trait timeout_io::Acceptor [−][src]
A trait for accepting elements, e.g. a TCP-listener
Required Methods
fn accept(&self, timeout: Duration) -> Result<T>
Accepts a type-T
-connection
Warning: This function makes self
non-blocking. It's up to you to restore the previous
state if necessary.
Parameters:
timeout
: The time to wait for a connection
Returns either the accepted connection or a corresponding IoError
Implementors
impl<T, U> Acceptor<U> for T where
T: StdAcceptor<U>,