pub enum FileToolErrorCode {
Show 15 variants
InvalidArguments,
InvalidPath,
NotFound,
NotAFile,
InvalidUtf8,
BinaryFile,
TooLarge,
NoMatch,
MatchCountMismatch,
PathChanged,
AtomicCommitFailed,
FilesystemFailure,
ProcessFailure,
OutputLimit,
Internal,
}Expand description
Stable machine-readable native file-tool failure classification.
Variants§
InvalidArguments
Invocation arguments were absent despite schema validation.
InvalidPath
A workspace path was invalid, changed, or escaped containment.
NotFound
The requested target was not found.
NotAFile
A regular file was required.
InvalidUtf8
File contents were not supported UTF-8 text.
BinaryFile
File contents appeared to be binary.
TooLarge
A source or resulting file exceeded deterministic bounds.
NoMatch
Exact edit text was not present.
MatchCountMismatch
Exact edit text had an unexpected number of matches.
PathChanged
The file changed after it was read for editing.
AtomicCommitFailed
A safe atomic commit could not be completed.
FilesystemFailure
A filesystem operation failed without exposing host diagnostics.
ProcessFailure
A configured process could not be spawned or awaited.
OutputLimit
Captured process output exceeded its spill bound.
Internal
An internal result-contract invariant failed.
Implementations§
Trait Implementations§
Source§impl Clone for FileToolErrorCode
impl Clone for FileToolErrorCode
impl Copy for FileToolErrorCode
Source§impl Debug for FileToolErrorCode
impl Debug for FileToolErrorCode
impl Eq for FileToolErrorCode
Source§impl PartialEq for FileToolErrorCode
impl PartialEq for FileToolErrorCode
impl StructuralPartialEq for FileToolErrorCode
Auto Trait Implementations§
impl Freeze for FileToolErrorCode
impl RefUnwindSafe for FileToolErrorCode
impl Send for FileToolErrorCode
impl Sync for FileToolErrorCode
impl Unpin for FileToolErrorCode
impl UnsafeUnpin for FileToolErrorCode
impl UnwindSafe for FileToolErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.