pub(crate) enum RequiredFileError {
Files(FilesError),
Missing {
path: RepositoryPath,
},
}Expand description
Reading a file that must exist failed.
Variants§
Files(FilesError)
The file cannot be read.
Missing
The file does not exist.
Fields
§
path: RepositoryPathThe file.
Implementations§
Source§impl RequiredFileError
impl RequiredFileError
Sourcepub(crate) fn read(
root: &RepositoryRoot,
path: &RepositoryPath,
) -> Result<Vec<u8>, Self>
pub(crate) fn read( root: &RepositoryRoot, path: &RepositoryPath, ) -> Result<Vec<u8>, Self>
The content of the file at path.
Trait Implementations§
Source§impl Debug for RequiredFileError
impl Debug for RequiredFileError
Source§impl Display for RequiredFileError
impl Display for RequiredFileError
Source§impl Error for RequiredFileError
impl Error for RequiredFileError
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 From<FilesError> for RequiredFileError
impl From<FilesError> for RequiredFileError
Source§fn from(source: FilesError) -> Self
fn from(source: FilesError) -> Self
Converts to this type from the input type.
Source§impl From<RequiredFileError> for HolderError
impl From<RequiredFileError> for HolderError
Source§fn from(source: RequiredFileError) -> Self
fn from(source: RequiredFileError) -> Self
Converts to this type from the input type.
Source§impl From<RequiredFileError> for PinError
impl From<RequiredFileError> for PinError
Source§fn from(source: RequiredFileError) -> Self
fn from(source: RequiredFileError) -> Self
Converts to this type from the input type.
Source§impl From<RequiredFileError> for ProposalError
impl From<RequiredFileError> for ProposalError
Source§fn from(source: RequiredFileError) -> Self
fn from(source: RequiredFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RequiredFileError
impl !UnwindSafe for RequiredFileError
impl Freeze for RequiredFileError
impl Send for RequiredFileError
impl Sync for RequiredFileError
impl Unpin for RequiredFileError
impl UnsafeUnpin for RequiredFileError
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