pub struct UnixProcess { /* private fields */ }
Expand description
Process type shared amongst unix-like operating systems
Implementations§
Trait Implementations§
Source§impl Debug for UnixProcess
impl Debug for UnixProcess
Source§impl Killable for UnixProcess
impl Killable for UnixProcess
Source§fn kill(&self, signal: KillportSignal) -> Result<bool, Error>
fn kill(&self, signal: KillportSignal) -> Result<bool, Error>
Entry point to kill the linux native process.
§Arguments
signal
- A enum value representing the signal type.
Source§fn get_type(&self) -> KillableType
fn get_type(&self) -> KillableType
Returns the type of the killable target.
This method is used to identify the type of the target (either a native process or a Docker container) that is being handled. This information can be useful for logging, error handling, or other needs where type of the target is relevant.
§Returns
String
- A string that describes the type of the killable target. For aUnixProcess
it will return “process”, and for aDockerContainer
it will return “container”.
fn get_name(&self) -> String
Auto Trait Implementations§
impl Freeze for UnixProcess
impl RefUnwindSafe for UnixProcess
impl Send for UnixProcess
impl Sync for UnixProcess
impl Unpin for UnixProcess
impl UnwindSafe for UnixProcess
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