pub struct Filter {
pub pattern: String,
pub type_: FilterType,
pub options: FilterOptions,
}
Expand description
A filter that will apply to processes and components running now and in the future. Any component or process that matches the given pattern and type will be attached, thereafter allowing clients to query information about the program(s). A valid filter will always contain a non-empty pattern string, and a FilterType to discern what to compare the pattern against. Additional options may be specified via FilterOptions.
Fields§
§pattern: String
A string pattern to be matched against the given |type|. An empty pattern will result in a NO_PATTERN error.
type_: FilterType
How to interpret |pattern|. See FilterType.
options: FilterOptions
Additional options for this filter. See FilterOptions.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Filter, D> for Filter
impl<D: ResourceDialect> Decode<Filter, D> for Filter
Source§impl<D: ResourceDialect, T0: Encode<UnboundedString, D>, T1: Encode<FilterType, D>, T2: Encode<FilterOptions, D>> Encode<Filter, D> for (T0, T1, T2)
impl<D: ResourceDialect, T0: Encode<UnboundedString, D>, T1: Encode<FilterType, D>, T2: Encode<FilterOptions, D>> Encode<Filter, D> for (T0, T1, T2)
Source§impl TypeMarker for Filter
impl TypeMarker for Filter
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Filter
impl ValueTypeMarker for Filter
impl Persistable for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)