pub struct SegmentCacheConfig {
pub max_segments: usize,
pub max_bytes: u64,
pub prefetch_ahead: u8,
pub evict_played: bool,
}Expand description
Configuration for SegmentCache.
Fields§
§max_segments: usizeMaximum number of segments across all streams.
max_bytes: u64Maximum total byte budget across all segments.
prefetch_ahead: u8How many segments ahead of current_seq to include in prefetch hints.
evict_played: boolWhen true, segments marked as played are eligible for immediate
eviction ahead of unplayed segments during the next capacity check.
Trait Implementations§
Source§impl Clone for SegmentCacheConfig
impl Clone for SegmentCacheConfig
Source§fn clone(&self) -> SegmentCacheConfig
fn clone(&self) -> SegmentCacheConfig
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 moreSource§impl Debug for SegmentCacheConfig
impl Debug for SegmentCacheConfig
Auto Trait Implementations§
impl Freeze for SegmentCacheConfig
impl RefUnwindSafe for SegmentCacheConfig
impl Send for SegmentCacheConfig
impl Sync for SegmentCacheConfig
impl Unpin for SegmentCacheConfig
impl UnsafeUnpin for SegmentCacheConfig
impl UnwindSafe for SegmentCacheConfig
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