pub enum BashError {
Forbidden(String),
TimeoutTooLarge,
SpawnFailed {
command: String,
reason: String,
},
InvalidRegex(String),
JoinFailed(String),
ShellNotFound(String),
WaitFailed(String),
}Expand description
Errors related to bash command execution
Variants§
Forbidden(String)
Command is forbidden (e.g., rm without flags)
TimeoutTooLarge
Timeout exceeds maximum allowed
SpawnFailed
Failed to spawn process
InvalidRegex(String)
Invalid regex pattern for filtering
JoinFailed(String)
Failed to join background task
ShellNotFound(String)
Shell ID not found
WaitFailed(String)
Wait on child process failed
Trait Implementations§
Source§impl Error for BashError
impl Error for BashError
1.30.0 · 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 Freeze for BashError
impl RefUnwindSafe for BashError
impl Send for BashError
impl Sync for BashError
impl Unpin for BashError
impl UnsafeUnpin for BashError
impl UnwindSafe for BashError
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