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.
AcceptMulti
A fused AcceptMulti operation
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.
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
A fused FileStat operation
HardLink
Create a hard link.
OpCodeFlag
Flags for operations.
OpenFile
Open or create a file with flags and mode.
PathStat
A fused PathStat operation
PollOnce
Poll a file descriptor for specified Interest.
Read
Read a file.
ReadAt
Read a file at specified position into specified buffer.
ReadManaged
A fused ReadManaged operation
ReadManagedAt
A fused ReadManagedAt operation
ReadMulti
A fused ReadMulti operation
ReadMultiAt
A fused ReadMultiAt operation
ReadVectored
Receive a file into vectored buffer.
ReadVectoredAt
Read a file at specified position into vectored buffer.
Recv
Receive data from remote.
RecvFrom
A fused RecvFrom operation
RecvFromManaged
A fused RecvFromManaged operation
RecvFromVectored
A fused RecvFromVectored operation
RecvManaged
A fused RecvManaged operation
RecvMsg
Receive data and source address with ancillary data into vectored buffer.
RecvMulti
A fused RecvMulti operation
RecvVectored
Receive data from remote into vectored buffer.
Rename
Rename a file or directory.
Send
Send data to remote.
SendMsg
Send data to specified address accompanied by ancillary data from vectored buffer.
SendMsgZc
A fused SendMsgZc operation
SendTo
A fused SendTo operation
SendToVectored
A fused SendToVectored operation
SendToVectoredZc
A fused SendToVectoredZc operation
SendToZc
A fused SendToZc operation
SendVectored
Send data to remote from vectored buffer.
SendVectoredZc
A fused SendVectoredZc operation
SendZc
A fused SendZc operation
ShutdownSocket
Shutdown a socket.
Splicelinux_all
Splice data between two file descriptors.
Stat
Symlink
Create a symlink.
Sync
Sync data to the disk.
TruncateFile
Truncates or extends the underlying file, updating the size of this file to become 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 ReadManagedAt and RecvManaged.
VecBufResultExt
Trait to update the buffer length inside the BufResult.

Functions§

StatNon-L4Re