Enum nostr_sdk::relay::FilterOptions
source · pub enum FilterOptions {
ExitOnEOSE,
WaitForEventsAfterEOSE(u16),
WaitDurationAfterEOSE(Duration),
}
Expand description
Filter options
Variants§
ExitOnEOSE
Exit on EOSE
WaitForEventsAfterEOSE(u16)
After EOSE is received, keep listening for N more events that match the filter, then return
WaitDurationAfterEOSE(Duration)
After EOSE is received, keep listening for matching events for Duration
more time, then return
Trait Implementations§
source§impl Clone for FilterOptions
impl Clone for FilterOptions
source§fn clone(&self) -> FilterOptions
fn clone(&self) -> FilterOptions
Returns a copy of the value. Read more
1.0.0 · 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 FilterOptions
impl Debug for FilterOptions
source§impl Default for FilterOptions
impl Default for FilterOptions
source§fn default() -> FilterOptions
fn default() -> FilterOptions
Returns the “default value” for a type. Read more
impl Copy for FilterOptions
Auto Trait Implementations§
impl RefUnwindSafe for FilterOptions
impl Send for FilterOptions
impl Sync for FilterOptions
impl Unpin for FilterOptions
impl UnwindSafe for FilterOptions
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