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§
source§impl From<Cmd> for EventHandler
impl From<Cmd> for EventHandler
source§fn from(c: Cmd) -> EventHandler
fn from(c: Cmd) -> EventHandler
Converts to this type from the input type.
Auto Trait Implementations§
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