pub enum HostError {
Io {
operation: &'static str,
path: VPath,
source: Error,
},
InternalIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
UnsupportedNode {
path: VPath,
},
NonUtf8Name {
parent: VPath,
name: OsString,
},
NonUtf8Symlink {
path: VPath,
},
MissingFileIdentity {
path: VPath,
},
Unstable {
path: VPath,
before: Box<FileStamp>,
after: Box<FileStamp>,
},
SnapshotLimit {
limit: &'static str,
observed: u64,
maximum: u64,
},
Snapshot(SnapshotError),
}Expand description
Capability-scoped host filesystem observation failure.
Variants§
Io
A user-visible workspace operation failed.
Fields
InternalIo
An internal runtime-directory operation failed.
Fields
UnsupportedNode
The host entry is neither a regular file, directory, nor symbolic link.
NonUtf8Name
A host name cannot be represented by portable VPath UTF-8.
NonUtf8Symlink
A Windows symbolic-link target cannot be represented portably.
MissingFileIdentity
The platform did not expose a stable node identity.
Unstable
Metadata changed around a supposedly stable read or enumeration.
Fields
SnapshotLimit
Snapshot traversal exceeded a configured bound.
Fields
Snapshot(SnapshotError)
Immutable snapshot construction failed.
Trait Implementations§
Source§impl Error for HostError
impl Error for HostError
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 HostError
impl !UnwindSafe for HostError
impl Freeze for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin for HostError
impl UnsafeUnpin for HostError
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