pub struct ProcessListRequest { /* private fields */ }Expand description
Closed request for one process snapshot.
Implementations§
Source§impl ProcessListRequest
impl ProcessListRequest
Sourcepub const fn with_sort(self, sort: ProcessSort) -> Self
pub const fn with_sort(self, sort: ProcessSort) -> Self
Selects the process sort order.
Sourcepub fn with_grep(self, value: impl Into<String>) -> InfraResult<Self>
pub fn with_grep(self, value: impl Into<String>) -> InfraResult<Self>
Adds a case-sensitive substring filter over rendered command rows.
Sourcepub fn with_user(self, value: impl Into<String>) -> InfraResult<Self>
pub fn with_user(self, value: impl Into<String>) -> InfraResult<Self>
Adds an exact user-column filter.
Sourcepub fn with_limit(self, limit: u32) -> InfraResult<Self>
pub fn with_limit(self, limit: u32) -> InfraResult<Self>
Sets the maximum returned row count.
Sourcepub const fn sort(&self) -> ProcessSort
pub const fn sort(&self) -> ProcessSort
Returns the selected sort order.
Trait Implementations§
Source§impl Clone for ProcessListRequest
impl Clone for ProcessListRequest
Source§fn clone(&self) -> ProcessListRequest
fn clone(&self) -> ProcessListRequest
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 moreSource§impl Debug for ProcessListRequest
impl Debug for ProcessListRequest
Source§impl<'de> Deserialize<'de> for ProcessListRequest
impl<'de> Deserialize<'de> for ProcessListRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcessListRequest
impl PartialEq for ProcessListRequest
Source§fn eq(&self, other: &ProcessListRequest) -> bool
fn eq(&self, other: &ProcessListRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessListRequest
impl Serialize for ProcessListRequest
impl Eq for ProcessListRequest
impl StructuralPartialEq for ProcessListRequest
Auto Trait Implementations§
impl Freeze for ProcessListRequest
impl RefUnwindSafe for ProcessListRequest
impl Send for ProcessListRequest
impl Sync for ProcessListRequest
impl Unpin for ProcessListRequest
impl UnsafeUnpin for ProcessListRequest
impl UnwindSafe for ProcessListRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.