Struct calloop::generic::Generic [−][src]
pub struct Generic<F: AsRawFd> { pub file: F, pub interest: Interest, pub mode: Mode, // some fields omitted }
Expand description
A generic event source wrapping a FD-backed type
Fields
file: F
The wrapped FD-backed type
interest: Interest
The programmed interest
mode: Mode
The programmed mode
Implementations
Trait Implementations
type Ret = Result<PostAction>
type Ret = Result<PostAction>
The return type of the user callback Read more
fn process_events<C>(
&mut self,
readiness: Readiness,
token: Token,
callback: C
) -> Result<PostAction> where
C: FnMut(Self::Event, &mut Self::Metadata) -> Self::Ret,
fn process_events<C>(
&mut self,
readiness: Readiness,
token: Token,
callback: C
) -> Result<PostAction> where
C: FnMut(Self::Event, &mut Self::Metadata) -> Self::Ret,
Process any relevant events Read more
Register yourself to this poll instance Read more
Re-register your file descriptors Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for Generic<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for Generic<F> where
F: UnwindSafe,