pub struct PidTable { /* private fields */ }Implementations§
Source§impl PidTable
impl PidTable
pub fn set_thread_group_notifier( &self, notifier: Sender<MemoryAttributionLifecycleEvent>, )
pub fn allocate_pid(&mut self) -> pid_t
pub fn get_task(&self, tid: tid_t) -> WeakRef<Task>
pub fn add_task(&mut self, task: &TempRef<'_, Task>)
pub fn remove_task(&mut self, tid: tid_t)
pub fn get_process(&self, pid: pid_t) -> Option<ProcessEntryRef<'_>>
pub fn get_thread_group(&self, pid: pid_t) -> Option<Arc<ThreadGroup>>
pub fn get_thread_groups(&self) -> impl Iterator<Item = Arc<ThreadGroup>> + '_
Sourcepub fn kill_process(&mut self, pid: pid_t, zombie: WeakRef<ZombieProcess>)
pub fn kill_process(&mut self, pid: pid_t, zombie: WeakRef<ZombieProcess>)
Replace process with the specified pid with the zombie.
pub fn remove_zombie(&mut self, pid: pid_t)
pub fn get_process_group(&self, pid: pid_t) -> Option<Arc<ProcessGroup>>
pub fn add_process_group(&self, process_group: Arc<ProcessGroup>)
pub fn remove_process_group(&self, pid: pid_t)
Sourcepub fn process_ids(&self) -> Vec<pid_t> ⓘ
pub fn process_ids(&self) -> Vec<pid_t> ⓘ
Returns the process ids for all processes, including zombies.
Sourcepub fn task_ids(&self) -> Vec<pid_t> ⓘ
pub fn task_ids(&self) -> Vec<pid_t> ⓘ
Returns the task ids for all the currently running tasks.
pub fn last_pid(&self) -> pid_t
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PidTable
impl !RefUnwindSafe for PidTable
impl Send for PidTable
impl Sync for PidTable
impl Unpin for PidTable
impl !UnwindSafe for PidTable
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.