pub enum Fat32Error {
Io(Error),
InvalidFat32 {
message: String,
},
NotFound {
path: String,
},
AlreadyExists {
path: String,
},
NoFreeSpace,
InvalidFileName {
name: String,
reason: String,
},
PlatformError {
message: String,
},
AccessDenied {
path: String,
tried_strategies: Vec<String>,
},
EspNotFound,
}Expand description
Main error type for fat32-raw operations
Variants§
Io(Error)
I/O error from underlying file operations
InvalidFat32
Invalid FAT32 structure or parameters
NotFound
File or directory not found
AlreadyExists
File or directory already exists
NoFreeSpace
No free clusters available
InvalidFileName
Invalid file name
PlatformError
Platform-specific error
AccessDenied
Access denied (typically on Windows ESP partitions)
EspNotFound
ESP partition not found
Implementations§
Source§impl Fat32Error
impl Fat32Error
pub fn invalid_fat32(message: impl Into<String>) -> Self
pub fn not_found(path: impl Into<String>) -> Self
pub fn already_exists(path: impl Into<String>) -> Self
pub fn invalid_file_name( name: impl Into<String>, reason: impl Into<String>, ) -> Self
pub fn platform_error(message: impl Into<String>) -> Self
pub fn access_denied( path: impl Into<String>, tried_strategies: Vec<String>, ) -> Self
Trait Implementations§
Source§impl Debug for Fat32Error
impl Debug for Fat32Error
Source§impl Display for Fat32Error
impl Display for Fat32Error
Source§impl Error for Fat32Error
impl Error for Fat32Error
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 Fat32Error
impl !RefUnwindSafe for Fat32Error
impl Send for Fat32Error
impl Sync for Fat32Error
impl Unpin for Fat32Error
impl !UnwindSafe for Fat32Error
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