pub struct IoErrorGenerator { /* private fields */ }Expand description
Generator for creating std::io::Error instances for testing.
Allows deterministic creation of IO errors without actual IO failures.
Implementations§
Source§impl IoErrorGenerator
impl IoErrorGenerator
Sourcepub fn new(mode: IoErrorGenerationMode) -> Self
pub fn new(mode: IoErrorGenerationMode) -> Self
Create a new IO error generator.
Sourcepub fn mode(&self) -> &IoErrorGenerationMode
pub fn mode(&self) -> &IoErrorGenerationMode
Get the generation mode.
Trait Implementations§
Source§impl Clone for IoErrorGenerator
impl Clone for IoErrorGenerator
Source§fn clone(&self) -> IoErrorGenerator
fn clone(&self) -> IoErrorGenerator
Returns a duplicate of the value. Read more
1.0.0 · 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 IoErrorGenerator
impl Debug for IoErrorGenerator
Auto Trait Implementations§
impl Freeze for IoErrorGenerator
impl RefUnwindSafe for IoErrorGenerator
impl Send for IoErrorGenerator
impl Sync for IoErrorGenerator
impl Unpin for IoErrorGenerator
impl UnwindSafe for IoErrorGenerator
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