pub enum FileType {
EmptyFile,
RandomFile(usize),
ZeroFile(usize),
Dir,
}
Expand description
Supported file types with TestDir
Variants§
EmptyFile
Create empty file
RandomFile(usize)
Create a file with random content of the given size
ZeroFile(usize)
Create a file with a given len of “0“s
Dir
Create a directory
Trait Implementations§
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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