Crate hala_io

Crate hala_io 

Source

Re-exports§

pub use bytes;

Modules§

context
mio
test

Structs§

Driver
The driver to driving Asynchronous IO
FileMode
Handle
File description handle. created by implementator.
Interest
Interest io event variant used in poll registering.
RawDriverExtProxy
Adapter RawDriverExt trait to RawDriver trait
ReadBuf
Sleep
Future type to suspend current task for a while
Token
File id for file description handle.
TypedHandle
Strong type version file handle.
WouldBlock
A future object which will suspend current task when F returns error WouldBlock

Enums§

Cmd
File description control command.
CmdResp
The response of fd_cntl .
Description
File description variants are used by the fd_open function to open file Handle.
OpenFlags
File description open flags used by fd_open method.

Traits§

IntoRawDriver
RawDriver
io driver must implement this trait.
RawDriverExt
Easier to implement version of RawDriver trait
TokenGenerator

Functions§

as_bytes_mut
poll_would_block
Call function F once and convert returns error WouldBlock to Poll Pending
sleep
Sleep for a while
timeout
Add timeout feature for exists Fut
would_block
Create a new future task that will suspend current task when F return error WouldBlock