Trait Route

Source
pub trait Route<E>: Receive<E> {
    // Required methods
    fn intercept(&mut self, intercept: Box<dyn Route<E, Output = E>>);
    fn take_intercept(&mut self) -> Option<Box<dyn Route<E, Output = E>>>;

    // Provided method
    fn intercept_at_root(&mut self, intercept: Box<dyn Route<E, Output = E>>) { ... }
}

Required Methods§

Source

fn intercept(&mut self, intercept: Box<dyn Route<E, Output = E>>)

Source

fn take_intercept(&mut self) -> Option<Box<dyn Route<E, Output = E>>>

Provided Methods§

Source

fn intercept_at_root(&mut self, intercept: Box<dyn Route<E, Output = E>>)

Implementors§

Source§

impl<E, R: Receive<E>> Route<E> for Router<E, R>