pub struct ZoneStreamOptions {
pub filter: RecordFilter,
pub batch: u64,
pub max_buffered_bytes: usize,
}Expand description
Параметры потоков ZoneIteration и ZoneMonitor. По умолчанию:
без отбора, порции по 16 наборов, 4 МиБ.
Fields§
§filter: RecordFilterКакие записи возвращать.
batch: u64Сколько наборов запрашивать у сервиса за раз, 1..=4096. Следующая порция запрашивается, когда предыдущая прочитана из потока.
max_buffered_bytes: usizeНаибольший суммарный размер непрочитанных наборов в байтах.
Trait Implementations§
Source§impl Clone for ZoneStreamOptions
impl Clone for ZoneStreamOptions
Source§fn clone(&self) -> ZoneStreamOptions
fn clone(&self) -> ZoneStreamOptions
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 ZoneStreamOptions
Source§impl Debug for ZoneStreamOptions
impl Debug for ZoneStreamOptions
Auto Trait Implementations§
impl Freeze for ZoneStreamOptions
impl RefUnwindSafe for ZoneStreamOptions
impl Send for ZoneStreamOptions
impl Sync for ZoneStreamOptions
impl Unpin for ZoneStreamOptions
impl UnsafeUnpin for ZoneStreamOptions
impl UnwindSafe for ZoneStreamOptions
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