pub enum RedirectionError {
Ambiguous(Vec<String>),
BadFdSrc(String),
BadFdPerms(Fd, Permissions),
Io(Error, Option<String>),
}Expand description
An error which may arise during redirection.
Variants§
Ambiguous(Vec<String>)
A redirect path evaluated to multiple fields.
BadFdSrc(String)
Attempted to duplicate an invalid file descriptor.
BadFdPerms(Fd, Permissions)
Attempted to duplicate a file descriptor with Read/Write access that differs from the original.
Io(Error, Option<String>)
Any I/O error returned by the OS during execution and the file that caused the error if applicable.
Trait Implementations§
Source§impl Debug for RedirectionError
impl Debug for RedirectionError
Source§impl Display for RedirectionError
impl Display for RedirectionError
Source§impl Error for RedirectionError
impl Error for RedirectionError
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<RedirectionError> for RuntimeError
impl From<RedirectionError> for RuntimeError
Source§fn from(source: RedirectionError) -> Self
fn from(source: RedirectionError) -> Self
Converts to this type from the input type.
Source§impl IsFatalError for RedirectionError
impl IsFatalError for RedirectionError
Source§impl PartialEq for RedirectionError
impl PartialEq for RedirectionError
impl Eq for RedirectionError
Auto Trait Implementations§
impl Freeze for RedirectionError
impl !RefUnwindSafe for RedirectionError
impl Send for RedirectionError
impl Sync for RedirectionError
impl Unpin for RedirectionError
impl !UnwindSafe for RedirectionError
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