pub enum EventFilter {
Project(String),
Prefix(String),
All,
}Expand description
Which projects’ events to watch.
Variants§
Project(String)
One project, by name.
Prefix(String)
Every project whose name starts with this prefix.
All
Every Compose project.
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn matches(&self, event: &EngineEvent) -> bool
pub fn matches(&self, event: &EngineEvent) -> bool
Whether event passes the filter.
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§impl Debug for EventFilter
impl Debug for EventFilter
impl Eq for EventFilter
Source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
impl StructuralPartialEq for EventFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.