pub struct LogFilterOptions {
pub filter_by_pid: bool,
pub pid: u64,
pub filter_by_tid: bool,
pub tid: u64,
pub verbosity: u8,
pub min_severity: LogLevelFilter,
pub tags: Vec<String>,
}
Fields§
§filter_by_pid: bool
§pid: u64
§filter_by_tid: bool
§tid: u64
§verbosity: u8
If more than zero, logs would be filtered based on verbosity and
min_severity
would be ignored.
min_severity: LogLevelFilter
Severity used as threshold to determine logging level.
If non-empty, return all messages which contain at least one specified
tag. If empty, messages will not be filtered by tag.
Passed tags should not be more than MAX_TAG_LEN_BYTES
bytes in length
and max tags can be MAX_TAGS
.
Listener would be discarded if the limit is not followed.
Trait Implementations§
Source§impl Clone for LogFilterOptions
impl Clone for LogFilterOptions
Source§fn clone(&self) -> LogFilterOptions
fn clone(&self) -> LogFilterOptions
Returns a copy of the value. Read more
1.0.0 · 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 LogFilterOptions
impl Debug for LogFilterOptions
Source§impl<D: ResourceDialect> Decode<LogFilterOptions, D> for LogFilterOptions
impl<D: ResourceDialect> Decode<LogFilterOptions, D> for LogFilterOptions
Source§impl<D: ResourceDialect> Encode<LogFilterOptions, D> for &LogFilterOptions
impl<D: ResourceDialect> Encode<LogFilterOptions, D> for &LogFilterOptions
Source§impl<D: ResourceDialect, T0: Encode<bool, D>, T1: Encode<u64, D>, T2: Encode<bool, D>, T3: Encode<u64, D>, T4: Encode<u8, D>, T5: Encode<LogLevelFilter, D>, T6: Encode<Vector<BoundedString<63>, 16>, D>> Encode<LogFilterOptions, D> for (T0, T1, T2, T3, T4, T5, T6)
impl<D: ResourceDialect, T0: Encode<bool, D>, T1: Encode<u64, D>, T2: Encode<bool, D>, T3: Encode<u64, D>, T4: Encode<u8, D>, T5: Encode<LogLevelFilter, D>, T6: Encode<Vector<BoundedString<63>, 16>, D>> Encode<LogFilterOptions, D> for (T0, T1, T2, T3, T4, T5, T6)
Source§impl Hash for LogFilterOptions
impl Hash for LogFilterOptions
Source§impl Ord for LogFilterOptions
impl Ord for LogFilterOptions
Source§fn cmp(&self, other: &LogFilterOptions) -> Ordering
fn cmp(&self, other: &LogFilterOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LogFilterOptions
impl PartialEq for LogFilterOptions
Source§impl PartialOrd for LogFilterOptions
impl PartialOrd for LogFilterOptions
Source§impl TypeMarker for LogFilterOptions
impl TypeMarker for LogFilterOptions
Source§type Owned = LogFilterOptions
type Owned = LogFilterOptions
The owned Rust type which this FIDL type decodes into.
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 LogFilterOptions
impl ValueTypeMarker for LogFilterOptions
Source§type Borrowed<'a> = &'a LogFilterOptions
type Borrowed<'a> = &'a LogFilterOptions
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Eq for LogFilterOptions
impl Persistable for LogFilterOptions
impl StructuralPartialEq for LogFilterOptions
Auto Trait Implementations§
impl Freeze for LogFilterOptions
impl RefUnwindSafe for LogFilterOptions
impl Send for LogFilterOptions
impl Sync for LogFilterOptions
impl Unpin for LogFilterOptions
impl UnwindSafe for LogFilterOptions
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
)