pub struct AdoptedProcess { /* private fields */ }Implementations§
Source§impl AdoptedProcess
impl AdoptedProcess
pub fn new(pid: NonZeroU32) -> Self
pub fn id(&self) -> u32
pub fn is_running(&self) -> Result<bool>
Trait Implementations§
Source§impl Clone for AdoptedProcess
impl Clone for AdoptedProcess
Source§fn clone(&self) -> AdoptedProcess
fn clone(&self) -> AdoptedProcess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdoptedProcess
Source§impl Debug for AdoptedProcess
impl Debug for AdoptedProcess
impl Eq for AdoptedProcess
Source§impl PartialEq for AdoptedProcess
impl PartialEq for AdoptedProcess
impl StructuralPartialEq for AdoptedProcess
Auto Trait Implementations§
impl Freeze for AdoptedProcess
impl RefUnwindSafe for AdoptedProcess
impl Send for AdoptedProcess
impl Sync for AdoptedProcess
impl Unpin for AdoptedProcess
impl UnsafeUnpin for AdoptedProcess
impl UnwindSafe for AdoptedProcess
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.