Struct fdb_rl::scan::ScanLimiter
source · pub struct ScanLimiter {
keyvalue_scan_limiter: Option<KeyValueScanLimiter>,
byte_scan_limiter: Option<ByteScanLimiter>,
time_scan_limiter: Option<TimeScanLimiter>,
}
Expand description
An encapsulation of the out-of-band state of scan execution.
Key-value limit, byte limit, time limit, are considered out-of-band states.
Fields§
§keyvalue_scan_limiter: Option<KeyValueScanLimiter>
§byte_scan_limiter: Option<ByteScanLimiter>
§time_scan_limiter: Option<TimeScanLimiter>
Implementations§
source§impl ScanLimiter
impl ScanLimiter
sourcepub fn new(
keyvalue_scan_limiter: Option<KeyValueScanLimiter>,
byte_scan_limiter: Option<ByteScanLimiter>,
time_scan_limiter: Option<TimeScanLimiter>
) -> ScanLimiter
pub fn new( keyvalue_scan_limiter: Option<KeyValueScanLimiter>, byte_scan_limiter: Option<ByteScanLimiter>, time_scan_limiter: Option<TimeScanLimiter> ) -> ScanLimiter
Creates an execute state with a supplied set of resource limiters.
sourcepub fn into_parts(
self
) -> (Option<KeyValueScanLimiter>, Option<ByteScanLimiter>, Option<TimeScanLimiter>)
pub fn into_parts( self ) -> (Option<KeyValueScanLimiter>, Option<ByteScanLimiter>, Option<TimeScanLimiter>)
If present, extract KeyValueScanLimiter
,
ByteScanLimiter
, TimeScanLimiter
from ScanLimiter
.
sourcepub fn get_keyvalue_scan_limiter_ref(&self) -> Option<&KeyValueScanLimiter>
pub fn get_keyvalue_scan_limiter_ref(&self) -> Option<&KeyValueScanLimiter>
Get reference to KeyValueScanLimiter
if one is present.
sourcepub fn get_byte_scan_limiter_ref(&self) -> Option<&ByteScanLimiter>
pub fn get_byte_scan_limiter_ref(&self) -> Option<&ByteScanLimiter>
Get reference to ByteScanLimiter
if one is present.
sourcepub fn get_time_scan_limiter_ref(&self) -> Option<&TimeScanLimiter>
pub fn get_time_scan_limiter_ref(&self) -> Option<&TimeScanLimiter>
Get reference to TimeScanLimiter
if one is present.
Trait Implementations§
source§impl Clone for ScanLimiter
impl Clone for ScanLimiter
source§fn clone(&self) -> ScanLimiter
fn clone(&self) -> ScanLimiter
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ScanLimiter
impl Send for ScanLimiter
impl Sync for ScanLimiter
impl Unpin for ScanLimiter
impl UnwindSafe for ScanLimiter
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