pub enum HandleOpenError {
FailedToOpenFileHandle(i32, String),
FailedToGetFileSize(i32),
FailedToSetFileSize(i32),
}
Expand description
Represents errors that can occur when providing file data.
Variants§
FailedToOpenFileHandle(i32, String)
Failed to open the file handle (Unix).
FailedToGetFileSize(i32)
Failed to get file size.
FailedToSetFileSize(i32)
Failed to set file size.
Implementations§
Source§impl HandleOpenError
impl HandleOpenError
pub fn failed_to_open_file_handle_unix(err_code: i32, path: &str) -> Self
pub fn failed_to_set_file_size(err_code: i32) -> Self
Trait Implementations§
Source§impl Debug for HandleOpenError
impl Debug for HandleOpenError
Source§impl Display for HandleOpenError
impl Display for HandleOpenError
Source§impl Error for HandleOpenError
impl Error for HandleOpenError
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()
Source§impl PartialEq for HandleOpenError
impl PartialEq for HandleOpenError
impl Eq for HandleOpenError
impl StructuralPartialEq for HandleOpenError
Auto Trait Implementations§
impl Freeze for HandleOpenError
impl RefUnwindSafe for HandleOpenError
impl Send for HandleOpenError
impl Sync for HandleOpenError
impl Unpin for HandleOpenError
impl UnwindSafe for HandleOpenError
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