dope-core 0.15.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::ops;

use crate::{
    driver::{ops::poll, schedule},
    io,
};

pub trait Source<'d>: poll::Poll<'d> {
    /// Drives directly from the backend queue, materializing one event at a time.
    #[doc(hidden)]
    fn dispatch(
        &mut self,
        work: schedule::Reactor<'_, 'd>,
        dispatch: impl FnMut(io::Event<'d>, &mut Self) -> ops::ControlFlow<io::Event<'d>>,
    ) -> poll::Dispatch<'d>;
}