pub struct Next<'n, 'de> { /* private fields */ }Expand description
Passes events on to the next Layer.
The last layer passes the events on to the sinks.
Implementations§
Source§impl<'n, 'de> Next<'n, 'de>
impl<'n, 'de> Next<'n, 'de>
Sourcepub fn emit(&mut self, event: LayerEvent<'_, 'de>) -> Result<(), Error>
pub fn emit(&mut self, event: LayerEvent<'_, 'de>) -> Result<(), Error>
Passes an event on.
This can be invoked any number of times per event. Events that were
passed on get the same input range (see
State::input_range) and event data (see State::event),
unless the layer changes them in the state.
Auto Trait Implementations§
impl<'n, 'de> !RefUnwindSafe for Next<'n, 'de>
impl<'n, 'de> !Sync for Next<'n, 'de>
impl<'n, 'de> !UnwindSafe for Next<'n, 'de>
impl<'n, 'de> Freeze for Next<'n, 'de>
impl<'n, 'de> Send for Next<'n, 'de>
impl<'n, 'de> Unpin for Next<'n, 'de>
impl<'n, 'de> UnsafeUnpin for Next<'n, 'de>
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