pub struct RegisteredSource<F> {
    pub(crate) source: F,
    ex: Weak<RawExecutor<EpollReactor>>,
    pub(crate) duped_fd: Arc<OwnedFd>,
}

Fields§

§source: F§ex: Weak<RawExecutor<EpollReactor>>§duped_fd: Arc<OwnedFd>

A clone of source’s underlying FD. Allows us to ensure that the FD isn’t closed during the epoll wait call. There are well defined sematics for closing an FD in an epoll context so it might be possible to eliminate this dup if someone thinks hard about it.

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.