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.
CloseFile
Close the file fd.
CloseSocket
Close socket fd.
Connect
Connect to a remote address.
CreateDirUnix
Create a directory.
CreateSocketUnix
Create a socket.
FileStatUnix
Get metadata of an opened file.
HardLinkUnix
Create a hard link.
OpenFileUnix
Open or create a file with flags and mode.
PathStatUnix
Get metadata from path.
PollOnceUnix
Poll a file descriptor for specified Interest.
ReadAt
Read a file at specified position into specified buffer.
ReadManagedAtNon-io_uring
Read a file at specified position into managed buffer.
ReadVectoredAtUnix
Read a file at specified position into vectored buffer.
Recv
Receive data from remote.
RecvFrom
Receive data and source address.
RecvFromVectored
Receive data and source address into vectored buffer.
RecvManagedNon-io_uring
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.
RenameUnix
Rename a file or directory.
Send
Send data to remote.
SendMsg
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.
SendVectored
Send data to remote from vectored buffer.
ShutdownSocket
Shutdown a socket.
SymlinkUnix
Create a symlink.
Sync
Sync data to the disk.
UnlinkUnix
Remove file or directory.
WriteAt
Write a file at specified position from specified buffer.
WriteVectoredAtUnix
Write a file at specified position from vectored buffer.

Enums§

InterestUnix
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.