pub trait SubmitOps: Sized {
// Required methods
fn submit_accept(
self,
fd: Fd,
) -> impl Future<Output = Result<(RawFd, SockAddr)>> + 'static;
fn submit_read<B>(
self,
fd: Fd,
buf: B,
) -> impl Future<Output = (Result<u32>, B)> + 'static
where B: AsMut<[u8]> + Unpin + 'static;
fn submit_send_raw<B>(
self,
fd: Fd,
buf: B,
len: usize,
) -> impl Future<Output = (Result<u32>, B)> + 'static
where B: AsRef<[u8]> + Unpin + 'static;
fn submit_sendmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'static
where P: SendMsgPacket + Unpin + 'static;
fn submit_recvmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'static
where P: RecvMsgPacket + Unpin + 'static;
}Required Methods§
fn submit_accept( self, fd: Fd, ) -> impl Future<Output = Result<(RawFd, SockAddr)>> + 'static
fn submit_read<B>( self, fd: Fd, buf: B, ) -> impl Future<Output = (Result<u32>, B)> + 'static
fn submit_send_raw<B>( self, fd: Fd, buf: B, len: usize, ) -> impl Future<Output = (Result<u32>, B)> + 'static
fn submit_sendmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'staticwhere
P: SendMsgPacket + Unpin + 'static,
fn submit_recvmsg_raw<P>(
self,
fd: Fd,
packet: P,
) -> impl Future<Output = (Result<u32>, P)> + 'staticwhere
P: RecvMsgPacket + Unpin + 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".