pub struct ProcessQuery {Show 16 fields
pub name_glob: String,
pub exe_regex: String,
pub include_env: bool,
pub app_class: String,
pub limit: u32,
pub include_unregistered: bool,
pub name_regex: String,
pub exe_glob: String,
pub cwd_glob: String,
pub cwd_regex: String,
pub pid: Option<u64>,
pub pid_min: Option<u64>,
pub pid_max: Option<u64>,
pub start_time_min_unix_ms: Option<u64>,
pub start_time_max_unix_ms: Option<u64>,
pub env: Vec<EnvMatch>,
}Fields§
§name_glob: StringLegacy selector fields retained for wire compatibility.
exe_regex: String§include_env: boolOpt-in, and still filtered by each process’s AllowPolicy.env_allowlist. Asking does not override a target’s default-deny on env values.
app_class: String§limit: u32A query without an explicit, bounded limit is refused.
include_unregistered: bool§name_regex: String§exe_glob: String§cwd_glob: String§cwd_regex: String§pid: Option<u64>§pid_min: Option<u64>§pid_max: Option<u64>§start_time_min_unix_ms: Option<u64>§start_time_max_unix_ms: Option<u64>§env: Vec<EnvMatch>Implementations§
Source§impl ProcessQuery
impl ProcessQuery
Sourcepub fn pid_min(&self) -> u64
pub fn pid_min(&self) -> u64
Returns the value of pid_min, or the default value if pid_min is unset.
Sourcepub fn pid_max(&self) -> u64
pub fn pid_max(&self) -> u64
Returns the value of pid_max, or the default value if pid_max is unset.
Sourcepub fn start_time_min_unix_ms(&self) -> u64
pub fn start_time_min_unix_ms(&self) -> u64
Returns the value of start_time_min_unix_ms, or the default value if start_time_min_unix_ms is unset.
Sourcepub fn start_time_max_unix_ms(&self) -> u64
pub fn start_time_max_unix_ms(&self) -> u64
Returns the value of start_time_max_unix_ms, or the default value if start_time_max_unix_ms is unset.
Trait Implementations§
Source§impl Clone for ProcessQuery
impl Clone for ProcessQuery
Source§fn clone(&self) -> ProcessQuery
fn clone(&self) -> ProcessQuery
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 ProcessQuery
impl Debug for ProcessQuery
Source§impl Default for ProcessQuery
impl Default for ProcessQuery
Source§impl Message for ProcessQuery
impl Message for ProcessQuery
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ProcessQuery
impl PartialEq for ProcessQuery
impl StructuralPartialEq for ProcessQuery
Auto Trait Implementations§
impl Freeze for ProcessQuery
impl RefUnwindSafe for ProcessQuery
impl Send for ProcessQuery
impl Sync for ProcessQuery
impl Unpin for ProcessQuery
impl UnsafeUnpin for ProcessQuery
impl UnwindSafe for ProcessQuery
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