#[non_exhaustive]pub enum FsError {
Show 15 variants
Read {
path: PathBuf,
source: Error,
},
ReadToString {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
Copy {
from: PathBuf,
to: PathBuf,
source: Error,
},
CreateDir {
path: PathBuf,
source: Error,
},
CreateTempDir {
source: Error,
},
CreateDirAll {
path: PathBuf,
source: Error,
},
RemoveFile {
path: PathBuf,
source: Error,
},
RemoveDirAll {
path: PathBuf,
source: Error,
},
ReadDir {
path: PathBuf,
source: Error,
},
Metadata {
path: PathBuf,
source: Error,
},
Rename {
from: PathBuf,
to: PathBuf,
source: Error,
},
SetPermissions {
path: PathBuf,
source: Error,
},
FileOpen {
path: PathBuf,
source: Error,
},
FileCreate {
path: PathBuf,
source: Error,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read
ReadToString
Write
Copy
CreateDir
CreateTempDir
CreateDirAll
RemoveFile
RemoveDirAll
ReadDir
Metadata
Rename
SetPermissions
FileOpen
FileCreate
Trait Implementations§
Source§impl Diagnostic for FsError
impl Diagnostic for FsError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn help(&self) -> Option<Box<dyn Display + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
Additional help text related to this
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
URL to visit for a more detailed explanation/help about this
Diagnostic.Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codeAdditional related
Diagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
Source§impl Error for FsError
impl Error for FsError
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<FsError> for ExternalDependencyError
impl From<FsError> for ExternalDependencyError
Source§impl From<FsError> for BuildError
impl From<FsError> for BuildError
Source§impl From<FsError> for ConfigError
impl From<FsError> for ConfigError
Source§impl From<FsError> for LockfileError
impl From<FsError> for LockfileError
Source§impl From<FsError> for InstallBinaryRockError
impl From<FsError> for InstallBinaryRockError
Source§impl From<FsError> for LuaRocksInstallError
impl From<FsError> for LuaRocksInstallError
Source§impl From<FsError> for ExecLuaRocksError
impl From<FsError> for ExecLuaRocksError
Source§impl From<FsError> for BuildLuaError
impl From<FsError> for BuildLuaError
Source§impl From<FsError> for DistProjectBinError
impl From<FsError> for DistProjectBinError
Source§impl From<FsError> for SearchAndDownloadError
impl From<FsError> for SearchAndDownloadError
Source§impl From<FsError> for FetchSrcError
impl From<FsError> for FetchSrcError
Source§impl From<FsError> for GenLuaRcError
impl From<FsError> for GenLuaRcError
Source§impl From<FsError> for RunTestsError
impl From<FsError> for RunTestsError
Source§impl From<FsError> for RemoveError
impl From<FsError> for RemoveError
Source§impl From<FsError> for UnpackError
impl From<FsError> for UnpackError
Source§impl From<FsError> for VendorError
impl From<FsError> for VendorError
Source§impl From<FsError> for ProjectTomlIntegrityError
impl From<FsError> for ProjectTomlIntegrityError
Source§impl From<FsError> for ProjectError
impl From<FsError> for ProjectError
Source§impl From<FsError> for ProjectEditError
impl From<FsError> for ProjectEditError
Auto Trait Implementations§
impl !RefUnwindSafe for FsError
impl !UnwindSafe for FsError
impl Freeze for FsError
impl Send for FsError
impl Sync for FsError
impl Unpin for FsError
impl UnsafeUnpin for FsError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.