Skip to main content

Module op

Module op 

Expand description

The async operations.

Types in this mod represents the low-level operations passed to kernel. The operation itself doesn’t perform anything. You need to pass them to crate::Proactor, and poll the driver.

Structs§

Accept
Accept a connection.
Asyncify
Spawn a blocking function in the thread pool.
AsyncifyFd
Spawn a blocking function with a file descriptor in the thread pool.
AsyncifyFd2
Spawn a blocking function with two file descriptors in the thread pool.
CloseFile
Close the file fd.
CloseSocket
Close socket fd.
Connect
Connect to a remote address.
ConnectNamedPipe
Connect to a named pipe.
DeviceIoControl
Send a control code to a device.
OpCodeFlag
Flags for operations.
Read
Read a file.
ReadAt
Read a file at specified position into specified buffer.
ReadManaged
Read a file into managed buffer.
ReadManagedAt
Read a file at specified position into managed buffer.
Recv
Receive data from remote.
RecvFrom
Receive data and source address.
RecvFromManaged
Receive data and source address into managed buffer.
RecvFromVectored
Receive data and source address into vectored buffer.
RecvManaged
Receive data from remote into managed buffer.
RecvMsg
Receive data and source address with ancillary data into vectored buffer.
RecvVectored
Receive data from remote into vectored buffer.
Send
Send data to remote.
SendMsg
Send data to specified address accompanied by ancillary data from vectored buffer.
SendMsgZc
Send data to specified address accompanied by ancillary data from vectored buffer.
SendTo
Send data to specified address from buffer.
SendToVectored
Send data to specified address from vectored buffer.
SendToVectoredZc
Send data to specified address from vectored buffer.
SendToZc
Send data to specified address from buffer.
SendVectored
Send data to remote from vectored buffer.
SendVectoredZc
Send data to remote from vectored buffer.
SendZc
Send data to remote.
ShutdownSocket
Shutdown a socket.
Sync
Sync data to the disk.
Write
Write a file.
WriteAt
Write a file at specified position from specified buffer.

Traits§

BufResultExt
Trait to update the buffer length inside the BufResult.
RecvResultExt
Helper trait for RecvFrom, RecvFromVectored and RecvMsg.
ResultTakeBuffer
Helper trait for ReadManagedAt and RecvManaged.
VecBufResultExt
Trait to update the buffer length inside the BufResult.

Type Aliases§

ReadMulti
Read a file into multiple managed buffers.
ReadMultiAt
Read a file at specified position into multiple managed buffers.
RecvMulti
Receive data from remote into multiple managed buffers.