pub struct Executor<T> { /* private fields */ }
Available on crate feature
executor
only.Expand description
A future executor as an event source
Trait Implementations
sourceimpl<T> EventSource for Executor<T>
impl<T> EventSource for Executor<T>
type Event = T
type Event = T
The type of events generated by your source.
type Error = ExecutorError
type Error = ExecutorError
The error type returned from
process_events()
(not the user callback!). Read moresourcefn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<PostAction, Self::Error>where
F: FnMut(T, &mut ()),
fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<PostAction, Self::Error>where
F: FnMut(T, &mut ()),
Process any relevant events Read more
sourcefn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
Register yourself to this poll instance Read more
sourcefn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory
) -> Result<()>
Re-register your file descriptors Read more
sourcefn unregister(&mut self, poll: &mut Poll) -> Result<()>
fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Executor<T>
impl<T> !Send for Executor<T>
impl<T> !Sync for Executor<T>
impl<T> Unpin for Executor<T>
impl<T> !UnwindSafe for Executor<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more