pub struct Dispatch<'app, 'driver, 'turn, 'root, 'd: 'root, R> { /* private fields */ }Expand description
Event dispatch authority for one exact retained root and scheduler turn.
Implementations§
Source§impl<'app, 'driver, 'turn, 'root, 'd: 'root, R> Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd: 'root, R> Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
Sourcepub const fn new(
app: Pin<&'app mut R>,
event: Event<'d>,
turn: Turn<'turn, 'd>,
driver: Context<'driver, 'root, 'd>,
) -> Self
pub const fn new( app: Pin<&'app mut R>, event: Event<'d>, turn: Turn<'turn, 'd>, driver: Context<'driver, 'root, 'd>, ) -> Self
Binds one event to its exact pinned root and retained driver authority.
pub fn route(&self) -> Route
pub fn map( self, map: impl FnOnce(Pin<&mut R>, Event<'d>, Turn<'_, 'd>, Context<'_, 'root, 'd>) -> ControlFlow<Event<'d>>, ) -> ControlFlow<Self>
pub fn into_event(self) -> Event<'d>
pub fn into_parts(self) -> (Pin<&'app mut R>, Event<'d>)
Auto Trait Implementations§
impl<'app, 'driver, 'turn, 'root, 'd, R> !RefUnwindSafe for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> !Send for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> !Sync for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> !UnwindSafe for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> Freeze for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> Unpin for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
impl<'app, 'driver, 'turn, 'root, 'd, R> UnsafeUnpin for Dispatch<'app, 'driver, 'turn, 'root, 'd, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more