Re-exports§
pub use bytes;
Modules§
Structs§
- Driver
- The driver to driving Asynchronous IO
- File
Mode - Handle
- File description handle. created by implementator.
- Interest
- Interest io event variant used in poll registering.
- RawDriver
ExtProxy - Adapter
RawDriverExttrait toRawDrivertrait - ReadBuf
- Sleep
- Future type to suspend current task for a while
- Token
- File id for file description handle.
- Typed
Handle - Strong type version file handle.
- Would
Block - A future object which will suspend current task when
Freturns errorWouldBlock
Enums§
- Cmd
- File description control command.
- CmdResp
- The response of
fd_cntl. - Description
- File description variants are used by the
fd_openfunction to open fileHandle. - Open
Flags - File description open flags used by
fd_openmethod.
Traits§
- Into
RawDriver - RawDriver
- io driver must implement this trait.
- RawDriver
Ext - Easier to implement version of
RawDrivertrait - Token
Generator
Functions§
- as_
bytes_ mut - poll_
would_ block - Call function
Fonce and convert returns errorWouldBlockto PollPending - 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
Freturn errorWouldBlock