pub enum HookOutcome {
Consumed,
PassThrough,
}Expand description
The outcome of an editor hook handling an event.
Variants§
Consumed
The hook handled the event; halt propagation to subsequent hooks and default editor handlers.
PassThrough
The hook did not consume the event; continue propagation to the next hook or default editor handler.
Trait Implementations§
Source§impl Clone for HookOutcome
impl Clone for HookOutcome
Source§fn clone(&self) -> HookOutcome
fn clone(&self) -> HookOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HookOutcome
Source§impl Debug for HookOutcome
impl Debug for HookOutcome
impl Eq for HookOutcome
Source§impl PartialEq for HookOutcome
impl PartialEq for HookOutcome
Source§fn eq(&self, other: &HookOutcome) -> bool
fn eq(&self, other: &HookOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HookOutcome
Auto Trait Implementations§
impl Freeze for HookOutcome
impl RefUnwindSafe for HookOutcome
impl Send for HookOutcome
impl Sync for HookOutcome
impl Unpin for HookOutcome
impl UnsafeUnpin for HookOutcome
impl UnwindSafe for HookOutcome
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