#[non_exhaustive]pub struct EventFilter {
pub node: Option<u64>,
pub event_min: u64,
}Expand description
An EventFilterIB: only events with event_number >= event_min are reported
(used to resume after the last seen event). node is omitted when None.
#[non_exhaustive]: build via EventFilter::from_event_min; marking it
keeps future optional fields non-breaking.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node: Option<u64>Node scope, or None.
event_min: u64Minimum event number to report (inclusive).
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn from_event_min(event_min: u64) -> Self
pub fn from_event_min(event_min: u64) -> Self
A filter reporting events with number >= event_min.
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 moreimpl Copy 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