pub struct ReaderConfig { /* private fields */ }Expand description
Configuration for CachedReader.
Implementations§
Source§impl ReaderConfig
impl ReaderConfig
Sourcepub const fn new(max_fetch_concurrency: NonZeroUsize) -> Self
pub const fn new(max_fetch_concurrency: NonZeroUsize) -> Self
Creates a configuration with an explicitly non-zero concurrency limit.
Sourcepub const fn max_fetch_concurrency(self) -> NonZeroUsize
pub const fn max_fetch_concurrency(self) -> NonZeroUsize
Returns the global maximum number of concurrent source fetches.
Trait Implementations§
Source§impl Clone for ReaderConfig
impl Clone for ReaderConfig
Source§fn clone(&self) -> ReaderConfig
fn clone(&self) -> ReaderConfig
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 ReaderConfig
Source§impl Debug for ReaderConfig
impl Debug for ReaderConfig
impl Eq for ReaderConfig
Source§impl PartialEq for ReaderConfig
impl PartialEq for ReaderConfig
impl StructuralPartialEq for ReaderConfig
Auto Trait Implementations§
impl Freeze for ReaderConfig
impl RefUnwindSafe for ReaderConfig
impl Send for ReaderConfig
impl Sync for ReaderConfig
impl Unpin for ReaderConfig
impl UnsafeUnpin for ReaderConfig
impl UnwindSafe for ReaderConfig
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