pub enum ReadError {
Missing,
Escape,
TooLarge(u64),
NotUtf8,
Io(String),
}Expand description
Why a workspace path could not be used.
Variants§
Missing
Nothing exists at the path.
Escape
The path is absolute, uses .., or resolves outside the root.
TooLarge(u64)
The file is larger than MAX_FILE_BYTES.
NotUtf8
The file is not UTF-8.
Io(String)
Any other IO failure.
Trait Implementations§
impl Eq for ReadError
impl StructuralPartialEq for ReadError
Auto Trait Implementations§
impl Forget for ReadError
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnsafeUnpin for ReadError
impl UnwindSafe for ReadError
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