pub(crate) fn register<T: AsFd>(
inner: T,
interest: Interest,
) -> Result<AsyncFd<Fd<T>>>Expand description
Register the descriptor of a value with the reactor of the runtime, the
returned [AsyncFd] owns the value.
The Fd has to stay in its [AsyncFd]: the mutable accessors of it,
like [AsyncFd::get_mut], must not be used to swap it with the one of
another registration, see the safety comment below.