Skip to main content

Next

Struct Next 

Source
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>

Source

pub fn state(&self) -> &State

Returns the state.

Source

pub fn state_mut(&mut self) -> &mut State

Returns the state mutably.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.