[−][src]Trait timeout_io::Acceptor
A trait for accepting elements, e.g. a TCP-listener
Required methods
fn accept(&self, timeout: Duration) -> Result<T, TimeoutIoError>
Tries to accept a type-T
-connection until timeout
expires
Warning: This function makes self
non-blocking. It's up to you to restore the previous
state if necessary.
Implementors
impl<U, T: StdAcceptor<U> + WaitForEvent> Acceptor<U> for T
[src]
impl<U, T: StdAcceptor<U> + WaitForEvent> Acceptor<U> for T
fn accept(&self, timeout: Duration) -> Result<U, TimeoutIoError> | [src] |