Skip to main content

Options

Trait Options 

Source
pub trait Options: Send + Sync {
    // Required methods
    fn is_enabled(&self) -> bool;
    fn include_redundant_members(&self) -> bool;
}
Expand description

Exposes the lazy-loading decisions needed by the service.

Implementations adapt request filter types without coupling the storage logic to their concrete representation.

Required Methods§

Source

fn is_enabled(&self) -> bool

Reports whether lazy loading is enabled.

Disabled options must not be passed to witness filtering.

Source

fn include_redundant_members(&self) -> bool

Reports whether previously seen members should be included again.

When enabled, witness history does not remove candidates from the response.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Options for LazyLoadOptions

Implementors§