[−][src]Crate stakker_mio
Integrates mio into Stakker.
MioPoll
is the main type. It handles polling and converting
mio events into Stakker forward calls. It offers priority
levels to allow some events to take priority over others. In
addition token cleanup is handled through drop handlers.
TcpStreamBuf
makes it easier to do buffering for a
mio::net::TcpStream
.
FdSource
wraps an arbitrary UNIX file descriptor for use with
MioPoll
.
All calls retry on ErrorKind::Interrupted
internally, so this
error doesn't have to be handled by the caller. Retrying is the
most helpful behaviour in a non-blocking event loop. In an app
using blocking I/O you might want a blocked call to be cut short
on a signal, but that case doesn't apply here.
The mio version used by this library is re-exported as
stakker_mio::mio
. This should be used by applications in place
of importing mio directly, to guarantee they're using the same
version.
Re-exports
pub use mio; |
Structs
MioPoll | Ref-counting wrapper around a mio |
MioSource | Wrapper for a mio |
Ready | Readiness information from |
TcpStreamBuf | Type to aid with managing a |
Enums
ReadStatus | Result of a |