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.
AcceptMulti
Accept multiple connections.
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.
Bind
Bind a socket to an address.
CloseFile
Close the file fd.
CloseSocket
Close socket fd.
Connect
Connect to a remote address.
CreateDir
Create a directory.
CreateSocket
Create a socket.
CurrentDir
A special file descriptor that always refers to the current working directory. It represents AT_FDCWD in libc.
FileStat
Get metadata of an opened file.
HardLink
Create a hard link.
Listen
Listen for connections on a socket.
Mode
S_I* constants for use with openat, chmodat, and fchmod.
OFlags
O_* constants for use with openat.
OpCodeFlag
Flags for operations.
OpenFile
Open or create a file with flags and mode.
PathStat
Get metadata from path.
Pipe
Create a pipe.
PollOnce
Poll a file descriptor for specified Interest.
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.
ReadVectored
Receive a file into vectored buffer.
ReadVectoredAt
Read a file at specified position into vectored 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.
Rename
Rename a file or directory.
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.
ShutdownSocket
Shutdown a socket.
Symlink
Create a symlink.
Sync
Sync data to the disk.
TruncateFile
Truncates or extends the underlying file, updating the size of file S to size.
Unlink
Remove file or directory.
Write
Write a file.
WriteAt
Write a file at specified position from specified buffer.
WriteVectored
Send to a file from vectored buffer.
WriteVectoredAt
Write a file at specified position from vectored buffer.

Enums§

Interest
The interest to poll a file descriptor.

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.
StatNeither linux_like nor GNU/Hurd nor NetBSD
struct stat for use with statat and fstat.