Struct uclicious::variable_handlers::compound::CompoundHandler
source · pub struct CompoundHandler { /* private fields */ }
Expand description
A variable handler that delegates handling to other handlers. Internally, it’s backed a Vec
of handlers that are checked in order they were registered one by one until first positive match.
Implementations§
source§impl CompoundHandler
impl CompoundHandler
sourcepub fn register_handler(
&mut self,
handler: Box<dyn VariableHandler>
) -> &mut Self
pub fn register_handler( &mut self, handler: Box<dyn VariableHandler> ) -> &mut Self
Add a handler to internal list of handlers.
Trait Implementations§
source§impl Default for CompoundHandler
impl Default for CompoundHandler
Auto Trait Implementations§
impl !RefUnwindSafe for CompoundHandler
impl !Send for CompoundHandler
impl !Sync for CompoundHandler
impl Unpin for CompoundHandler
impl !UnwindSafe for CompoundHandler
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