pub enum OpCode {
Read,
Write,
Accept,
Connect,
SendTo,
RecvFrom,
}Expand description
Which async operation a DtactIoFuture represents — mirrors the
Windows backend’s OpCode of the same name.
Variants§
Read
A socket read.
Write
A socket write.
Accept
Accept a new connection on a listening socket.
Connect
Connect to a remote address.
SendTo
Connectionless UDP send to an explicit peer. Carries a caller-owned
msghdr (see DtactUdpSocket::send_to); io_uring uses SendMsg,
the mio fallback uses sendmsg(2).
RecvFrom
Connectionless UDP receive recording the peer address. Carries a
caller-owned msghdr; io_uring uses RecvMsg, the mio fallback uses
recvmsg(2).
Trait Implementations§
impl Copy for OpCode
impl Eq for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnsafeUnpin for OpCode
impl UnwindSafe for OpCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more