pub struct EngineConsumerFetchConfig { /* private fields */ }Expand description
Broker long-poll and byte policy compiled before a consumer starts.
Defaults are 500 ms, one byte, one MiB, one MiB, and 30 seconds respectively.
Implementations§
Source§impl EngineConsumerFetchConfig
impl EngineConsumerFetchConfig
Sourcepub const fn new(
max_wait: Duration,
min_bytes: usize,
max_bytes: usize,
partition_max_bytes: usize,
attempt_timeout: Duration,
) -> Self
pub const fn new( max_wait: Duration, min_bytes: usize, max_bytes: usize, partition_max_bytes: usize, attempt_timeout: Duration, ) -> Self
Creates raw Fetch settings for engine validation.
Sourcepub const fn partition_max_bytes(self) -> usize
pub const fn partition_max_bytes(self) -> usize
Returns the soft per-partition byte ceiling.
Sourcepub const fn attempt_timeout(self) -> Duration
pub const fn attempt_timeout(self) -> Duration
Returns the end-to-end Fetch-attempt timeout.
Trait Implementations§
Source§impl Clone for EngineConsumerFetchConfig
impl Clone for EngineConsumerFetchConfig
impl Copy for EngineConsumerFetchConfig
Source§impl Debug for EngineConsumerFetchConfig
impl Debug for EngineConsumerFetchConfig
Source§impl Default for EngineConsumerFetchConfig
impl Default for EngineConsumerFetchConfig
impl Eq for EngineConsumerFetchConfig
impl StructuralPartialEq for EngineConsumerFetchConfig
Auto Trait Implementations§
impl Freeze for EngineConsumerFetchConfig
impl RefUnwindSafe for EngineConsumerFetchConfig
impl Send for EngineConsumerFetchConfig
impl Sync for EngineConsumerFetchConfig
impl Unpin for EngineConsumerFetchConfig
impl UnsafeUnpin for EngineConsumerFetchConfig
impl UnwindSafe for EngineConsumerFetchConfig
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