pub struct PeerStoreStreamOptions {
pub prefetch: usize,
pub max_buffered_bytes: usize,
}Expand description
Ограничения потока записей. По умолчанию по одной записи и 64 КиБ.
Fields§
§prefetch: usizeСколько записей запрашивается у сервиса за раз, от 1 до 256.
max_buffered_bytes: usizeНаибольший суммарный размер непрочитанных значений в байтах; не ноль.
Trait Implementations§
Source§impl Clone for PeerStoreStreamOptions
impl Clone for PeerStoreStreamOptions
Source§fn clone(&self) -> PeerStoreStreamOptions
fn clone(&self) -> PeerStoreStreamOptions
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 PeerStoreStreamOptions
Source§impl Debug for PeerStoreStreamOptions
impl Debug for PeerStoreStreamOptions
Auto Trait Implementations§
impl Freeze for PeerStoreStreamOptions
impl RefUnwindSafe for PeerStoreStreamOptions
impl Send for PeerStoreStreamOptions
impl Sync for PeerStoreStreamOptions
impl Unpin for PeerStoreStreamOptions
impl UnsafeUnpin for PeerStoreStreamOptions
impl UnwindSafe for PeerStoreStreamOptions
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