pub enum PrivateFileReadError {
Read(ArtifactError),
Permissions {
mode: u32,
},
LinkCount {
actual: u64,
},
Length {
expected: usize,
},
}Expand description
A private-file read failed without returning partial bytes.
Variants§
Read(ArtifactError)
Opening, file admission, metadata or reading failed.
Permissions
The opened descriptor does not have exactly owner read/write permissions.
LinkCount
The opened file does not have exactly one directory link.
Length
Metadata or a trailing byte proves the file is not the required length.
Trait Implementations§
Source§impl Debug for PrivateFileReadError
impl Debug for PrivateFileReadError
Source§impl Display for PrivateFileReadError
impl Display for PrivateFileReadError
Source§impl Error for PrivateFileReadError
impl Error for PrivateFileReadError
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 !RefUnwindSafe for PrivateFileReadError
impl !UnwindSafe for PrivateFileReadError
impl Freeze for PrivateFileReadError
impl Send for PrivateFileReadError
impl Sync for PrivateFileReadError
impl Unpin for PrivateFileReadError
impl UnsafeUnpin for PrivateFileReadError
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