pub struct StreamOptions { /* private fields */ }Expand description
Tuning options for bounded single-file streaming reads.
Implementations§
Source§impl StreamOptions
impl StreamOptions
pub const fn new() -> StreamOptions
Sourcepub const fn with_chunk_size(self, bytes: NonZero<usize>) -> StreamOptions
pub const fn with_chunk_size(self, bytes: NonZero<usize>) -> StreamOptions
Set the nonzero maximum bytes delivered to the callback at once.
ⓘ
use vfsi_core::api::StreamOptions;
let options = StreamOptions::new().with_chunk_size(0);NFS and other backends may return smaller chunks due to negotiated protocol limits. A larger setting does not bypass those limits.
pub const fn chunk_size(self) -> usize
Trait Implementations§
Source§impl Clone for StreamOptions
impl Clone for StreamOptions
Source§fn clone(&self) -> StreamOptions
fn clone(&self) -> StreamOptions
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 StreamOptions
Source§impl Debug for StreamOptions
impl Debug for StreamOptions
Source§impl Default for StreamOptions
impl Default for StreamOptions
Source§fn default() -> StreamOptions
fn default() -> StreamOptions
Returns the “default value” for a type. Read more
impl Eq for StreamOptions
Source§impl PartialEq for StreamOptions
impl PartialEq for StreamOptions
impl StructuralPartialEq for StreamOptions
Auto Trait Implementations§
impl Freeze for StreamOptions
impl RefUnwindSafe for StreamOptions
impl Send for StreamOptions
impl Sync for StreamOptions
impl Unpin for StreamOptions
impl UnsafeUnpin for StreamOptions
impl UnwindSafe for StreamOptions
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