pub enum ProcError {
ProcessNotFound(String),
PortNotFound(u16),
PermissionDenied(u32),
InvalidInput(String),
SystemError(String),
Timeout(String),
ParseError(String),
NotSupported(String),
ProcessGone(u32),
SignalError(String),
}Expand description
Main error type for proc operations
Variants§
ProcessNotFound(String)
No process found matching the given target
PortNotFound(u16)
No process is listening on the specified port
PermissionDenied(u32)
Insufficient permissions to operate on the process
InvalidInput(String)
User provided invalid input or arguments
SystemError(String)
An underlying system call failed
Timeout(String)
The operation exceeded the allowed time limit
ParseError(String)
Failed to parse input or system output
NotSupported(String)
Feature is not available on the current platform
ProcessGone(u32)
The target process terminated during the operation
SignalError(String)
Failed to send a signal to the process
Trait Implementations§
Source§impl Error for ProcError
impl Error for ProcError
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 ProcError
impl RefUnwindSafe for ProcError
impl Send for ProcError
impl Sync for ProcError
impl Unpin for ProcError
impl UnwindSafe for ProcError
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