pub trait Acceptor<T> { fn accept(&mut self) -> Option<T>; fn incoming<'r>(&'r mut self) -> IncomingIterator<'r, Self> { ... } }
An acceptor is a value that presents incoming connections
fn accept(&mut self) -> Option<T>
Wait for and accept an incoming connection
Raise io_error
condition. If the condition is handled,
then accept
returns None
.
fn incoming<'r>(&'r mut self) -> IncomingIterator<'r, Self>
Create an iterator over incoming connection attempts
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).