pub enum WorkdirError {
Refused(WorkdirRefusal),
Io {
path: String,
source: Error,
},
}Expand description
Error from a WorkdirRoot call.
Variants§
Refused(WorkdirRefusal)
The call met a link or the wrong file type and did nothing. Already latched.
Io
The call failed for an ordinary I/O reason. path is in WorkdirRoot::display_path’s
form, or the host path when a root opened by path could not be opened.
Implementations§
Source§impl WorkdirError
impl WorkdirError
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Whether the call failed because the path does not exist.
Trait Implementations§
Source§impl Debug for WorkdirError
impl Debug for WorkdirError
Source§impl Display for WorkdirError
impl Display for WorkdirError
Source§impl Error for WorkdirError
impl Error for WorkdirError
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<WorkdirError> for RuntimeError
A refusal is RuntimeError::WorkdirPathRefused; any I/O failure is
RuntimeError::CreateWorkdir. Use RuntimeError::from_workdir where that variant is wrong.
impl From<WorkdirError> for RuntimeError
A refusal is RuntimeError::WorkdirPathRefused; any I/O failure is
RuntimeError::CreateWorkdir. Use RuntimeError::from_workdir where that variant is wrong.
Source§fn from(error: WorkdirError) -> Self
fn from(error: WorkdirError) -> Self
Converts to this type from the input type.
Source§impl From<WorkdirError> for Error
impl From<WorkdirError> for Error
Source§fn from(error: WorkdirError) -> Self
fn from(error: WorkdirError) -> Self
A refusal becomes PermissionDenied carrying the refusal’s text, for the callers whose
own error type is io::Error. The refusal itself is already on the latch.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkdirError
impl !UnwindSafe for WorkdirError
impl Forget for WorkdirError
impl Freeze for WorkdirError
impl Send for WorkdirError
impl Sync for WorkdirError
impl Unpin for WorkdirError
impl UnsafeUnpin for WorkdirError
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
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 more