Skip to main content

Module op

Module op 

Source
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.
Disconnect
Disconnect a connected socket and reuse it for another connection.
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.
RecvFlags
MSG_* flags for use with recv, recvfrom, and related functions.
RecvFrom
Receive data and source address.
RecvFromManaged
Receive data and source address into managed buffer.
RecvFromMulti
Receive data and source address multi times into multiple managed buffers.
RecvFromMultiResult
Result of RecvFromMulti.
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.
RecvMsgManaged
Receive data into managed buffer, and ancillary data into control buffer.
RecvMsgMulti
Receive data, ancillary data and source address multi times into multiple managed buffers.
RecvMsgMultiResult
Result of RecvMsgMulti.
RecvVectored
Receive data from remote into vectored buffer.
Send
Send data to remote.
SendFlags
MSG_* flags for use with send, sendto, and related functions.
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.
SendToVectored
Send data to specified address from vectored buffer.
SendToVectoredZc
Send data to specified address from vectored buffer.
SendToZc
Send data to specified address.
SendVectored
Send data to remote from vectored buffer.
SendVectoredZc
Send data to remote from vectored buffer.
SendZc
Send data to remote.
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 taking buffer from a BufResult.
TakeBuffer
Take buffer out of an operation.
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.