Function wasmer_wasix::syscalls::__sock_upgrade
source ยท pub(crate) fn __sock_upgrade<'a, F, Fut>(
ctx: &'a mut FunctionEnvMut<'_, WasiEnv>,
sock: Fd,
rights: Rights,
actor: F,
) -> Result<(), Errno>where
F: FnOnce(InodeSocket, Fdflags) -> Fut,
Fut: Future<Output = Result<Option<InodeSocket>, Errno>> + 'a,
Expand description
Replaces a socket with another socket in under an asynchronous runtime. This is used for opening sockets or connecting sockets which changes the fundamental state of the socket to another state machine