Struct fs::ReadOptions
source · pub struct ReadOptions { /* private fields */ }
Expand description
Options for how to read the file.
The default is to automatically determine the buffer size.
Implementations§
source§impl ReadOptions
impl ReadOptions
sourcepub fn buffer_size(self, buffer_size: usize) -> Self
pub fn buffer_size(self, buffer_size: usize) -> Self
The buffer size to use when reading.
Default is automatically determined from the operating system.
Panic
The passed argument must be larger than 0.
Trait Implementations§
source§impl Debug for ReadOptions
impl Debug for ReadOptions
source§impl Default for ReadOptions
impl Default for ReadOptions
source§fn default() -> ReadOptions
fn default() -> ReadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
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