pub enum FsLimitExceeded {
TotalBytes {
current: u64,
additional: u64,
limit: u64,
},
FileSize {
size: u64,
limit: u64,
},
FileCount {
current: u64,
limit: u64,
},
PathTooDeep {
depth: usize,
limit: usize,
},
FilenameTooLong {
length: usize,
limit: usize,
},
PathTooLong {
length: usize,
limit: usize,
},
UnsafePathChar {
character: String,
component: String,
},
}Expand description
Error returned when a filesystem limit is exceeded.
Variants§
TotalBytes
Total filesystem size would exceed limit.
FileSize
Single file size exceeds limit.
FileCount
File count would exceed limit.
PathTooDeep
Path depth (nesting) exceeds limit (TM-DOS-012).
FilenameTooLong
Single filename component exceeds length limit (TM-DOS-013).
PathTooLong
Total path exceeds length limit (TM-DOS-013).
UnsafePathChar
Path contains unsafe character (TM-DOS-015).
Trait Implementations§
Source§impl Clone for FsLimitExceeded
impl Clone for FsLimitExceeded
Source§fn clone(&self) -> FsLimitExceeded
fn clone(&self) -> FsLimitExceeded
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 FsLimitExceeded
impl Debug for FsLimitExceeded
Source§impl Display for FsLimitExceeded
impl Display for FsLimitExceeded
Source§impl Error for FsLimitExceeded
impl Error for FsLimitExceeded
1.30.0 · 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 FsLimitExceeded
impl RefUnwindSafe for FsLimitExceeded
impl Send for FsLimitExceeded
impl Sync for FsLimitExceeded
impl Unpin for FsLimitExceeded
impl UnwindSafe for FsLimitExceeded
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