pub struct SmolFD<T: AsRawFd + AsFd + Send + Sync + 'static>(/* private fields */);Expand description
Associate type for SmolRT
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SmolFD<T>where
T: Freeze,
impl<T> RefUnwindSafe for SmolFD<T>where
T: RefUnwindSafe,
impl<T> Send for SmolFD<T>
impl<T> Sync for SmolFD<T>
impl<T> Unpin for SmolFD<T>
impl<T> UnwindSafe for SmolFD<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<FT, T> AsyncExec for FT
impl<FT, T> AsyncExec for FT
type AsyncHandle<R: Send> = <T as AsyncExec>::AsyncHandle<R>
type ThreadHandle<R: Send> = <T as AsyncExec>::ThreadHandle<R>
Source§fn spawn<F, R>(&self, f: F) -> <FT as AsyncExec>::AsyncHandle<R>
fn spawn<F, R>(&self, f: F) -> <FT as AsyncExec>::AsyncHandle<R>
Spawn a task in the background, returning a handle to await its result. Read more
Source§fn spawn_detach<F, R>(&self, f: F)
fn spawn_detach<F, R>(&self, f: F)
Spawn a task and detach it (no handle returned). Read more
Source§fn spawn_blocking<F, R>(f: F) -> <FT as AsyncExec>::ThreadHandle<R>
fn spawn_blocking<F, R>(f: F) -> <FT as AsyncExec>::ThreadHandle<R>
Run blocking code in a background thread pool, and return an async join handle Read more
Source§impl<F, IO> AsyncIO for F
impl<F, IO> AsyncIO for F
Source§type AsyncFd<T: AsRawFd + AsFd + Send + Sync + 'static> = <IO as AsyncIO>::AsyncFd<T>
type AsyncFd<T: AsRawFd + AsFd + Send + Sync + 'static> = <IO as AsyncIO>::AsyncFd<T>
The type used to represent async file descriptors. Read more
Source§fn connect_tcp(
addr: &SocketAddr,
) -> impl Future<Output = Result<<F as AsyncIO>::AsyncFd<TcpStream>, Error>> + Send
fn connect_tcp( addr: &SocketAddr, ) -> impl Future<Output = Result<<F as AsyncIO>::AsyncFd<TcpStream>, Error>> + Send
Connect to a TCP address asynchronously. Read more
Source§fn connect_unix(
addr: &Path,
) -> impl Future<Output = Result<<F as AsyncIO>::AsyncFd<UnixStream>, Error>> + Send
fn connect_unix( addr: &Path, ) -> impl Future<Output = Result<<F as AsyncIO>::AsyncFd<UnixStream>, Error>> + Send
Connect to a Unix socket address asynchronously. Read more
Source§impl<F, T> AsyncTime for F
impl<F, T> AsyncTime for F
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