pub struct EventFilter {
pub operations: bool,
pub lifecycle: bool,
pub logging: bool,
}Expand description
Which event types to subscribe to. All true by default (subscribe to
everything Incus emits).
Setting every field to false sends ?type= (an empty value) to Incus
rather than omitting the parameter - whether a real daemon then treats
that as “no filter, send everything” or “filter to nothing” is not
verified by this crate. EventFilter::default covers the common case;
if you deliberately construct an all-false filter, confirm the
behavior against a real daemon first.
Fields§
§operations: bool§lifecycle: bool§logging: boolTrait 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
impl Copy 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