[][src]Struct controlgroup::Pid

pub struct Pid(_);

PID or thread ID for attaching a task to a cgroup.

Pid can be converted from u32 and &std::process::Child.

use controlgroup::Pid;

let pid = Pid::from(42_u32);

let child = std::process::Command::new("sleep").arg("1").spawn().unwrap();
let pid = Pid::from(&child);

Trait Implementations

impl Into<u32> for Pid[src]

impl Eq for Pid[src]

impl Clone for Pid[src]

impl PartialOrd<Pid> for Pid[src]

impl PartialEq<Pid> for Pid[src]

impl Ord for Pid[src]

impl From<u32> for Pid[src]

impl<'_> From<&'_ Child> for Pid[src]

impl Copy for Pid[src]

impl Hash for Pid[src]

impl Debug for Pid[src]

impl Display for Pid[src]

impl FromStr for Pid[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Pid

impl Unpin for Pid

impl Sync for Pid

impl UnwindSafe for Pid

impl RefUnwindSafe for Pid

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]