Enum rustyline::EventHandler
source · pub enum EventHandler {
Simple(Cmd),
Conditional(Box<dyn ConditionalEventHandler>),
}
Expand description
Event handler
Variants§
Simple(Cmd)
unconditional command
Conditional(Box<dyn ConditionalEventHandler>)
handler behaviour depends on input state
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventHandler
impl !RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler
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