pub enum FormatError {
Show 23 variants
NotDirectory(PathBuf),
NotFile(PathBuf),
NotFound(PathBuf),
AlreadyExists(PathBuf),
UnsupportedFiletype,
MaximumLinksExceeded(PathBuf),
FileTooBig(u64),
InvalidLink(PathBuf),
InvalidName(String),
NoSpaceForTrailingDirEntry,
InsufficientSpaceForGroupDescriptorBlocks,
CannotHardlinkDirectory(PathBuf),
UnsupportedBlockSize(u32),
InvalidLabel(String),
CannotTruncateFile(PathBuf),
CannotCreateSparseFile(PathBuf),
CannotResizeFs(u64),
XattrInsufficientSpace(u32),
MalformedXattrBuffer,
InvalidAsciiString(String),
CircularLinks,
InvalidPathEncoding(String),
Io(Error),
}Expand description
Errors that can occur when formatting an ext4 filesystem.
Variants§
NotDirectory(PathBuf)
NotFile(PathBuf)
NotFound(PathBuf)
AlreadyExists(PathBuf)
UnsupportedFiletype
MaximumLinksExceeded(PathBuf)
FileTooBig(u64)
InvalidLink(PathBuf)
InvalidName(String)
NoSpaceForTrailingDirEntry
InsufficientSpaceForGroupDescriptorBlocks
CannotHardlinkDirectory(PathBuf)
UnsupportedBlockSize(u32)
InvalidLabel(String)
CannotTruncateFile(PathBuf)
CannotCreateSparseFile(PathBuf)
CannotResizeFs(u64)
XattrInsufficientSpace(u32)
MalformedXattrBuffer
InvalidAsciiString(String)
CircularLinks
InvalidPathEncoding(String)
Io(Error)
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FormatError
impl !RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl !UnwindSafe for FormatError
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