pub struct EventFilter {
pub show_keys: bool,
pub show_mouse: bool,
pub show_focus: bool,
pub show_resize: bool,
pub show_custom: bool,
pub target_filter: Option<String>,
pub only_handled: bool,
}Expand description
Event filter configuration
Fields§
§show_keys: boolShow key events
show_mouse: boolShow mouse events
show_focus: boolShow focus events
show_resize: boolShow resize events
show_custom: boolShow custom events
target_filter: Option<String>Filter by target
only_handled: boolOnly show handled events
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn mouse_only() -> Self
pub fn mouse_only() -> Self
Create filter for mouse events only
Sourcepub fn matches(&self, event: &LoggedEvent) -> bool
pub fn matches(&self, event: &LoggedEvent) -> bool
Check if event matches filter
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
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 moreSource§impl Debug for EventFilter
impl Debug for EventFilter
Source§impl Default for EventFilter
impl Default for EventFilter
Source§fn default() -> EventFilter
fn default() -> EventFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnsafeUnpin for EventFilter
impl UnwindSafe for EventFilter
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