pub enum ControlledFileError {
LineOutOfRange {
index: usize,
length: usize,
},
Error(Error),
}Expand description
Errors that may occur during controlled file operations.
Variants§
Trait Implementations§
Source§impl Debug for ControlledFileError
impl Debug for ControlledFileError
Source§impl Display for ControlledFileError
impl Display for ControlledFileError
Source§impl Error for ControlledFileError
impl Error for ControlledFileError
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 ControlledFileError
impl !RefUnwindSafe for ControlledFileError
impl Send for ControlledFileError
impl Sync for ControlledFileError
impl Unpin for ControlledFileError
impl !UnwindSafe for ControlledFileError
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