Struct fidl_fuchsia_logger::LogFilterOptions
source · 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 Decode<LogFilterOptions> for LogFilterOptions
impl Decode<LogFilterOptions> for LogFilterOptions
source§impl Encode<LogFilterOptions> for &LogFilterOptions
impl Encode<LogFilterOptions> for &LogFilterOptions
source§impl<T0: Encode<bool>, T1: Encode<u64>, T2: Encode<bool>, T3: Encode<u64>, T4: Encode<u8>, T5: Encode<LogLevelFilter>, T6: Encode<Vector<BoundedString<63>, 16>>> Encode<LogFilterOptions> for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: Encode<bool>, T1: Encode<u64>, T2: Encode<bool>, T3: Encode<u64>, T4: Encode<u8>, T5: Encode<LogLevelFilter>, T6: Encode<Vector<BoundedString<63>, 16>>> Encode<LogFilterOptions> 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<LogFilterOptions> for LogFilterOptions
impl PartialEq<LogFilterOptions> for LogFilterOptions
source§fn eq(&self, other: &LogFilterOptions) -> bool
fn eq(&self, other: &LogFilterOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LogFilterOptions> for LogFilterOptions
impl PartialOrd<LogFilterOptions> for LogFilterOptions
source§fn partial_cmp(&self, other: &LogFilterOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &LogFilterOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for LogFilterOptions
impl TypeMarker for LogFilterOptions
§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
§type Borrowed<'a> = &'a <LogFilterOptions as TypeMarker>::Owned
type Borrowed<'a> = &'a <LogFilterOptions as TypeMarker>::Owned
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 StructuralEq for LogFilterOptions
impl StructuralPartialEq for LogFilterOptions
Auto Trait Implementations§
impl RefUnwindSafe for LogFilterOptions
impl Send for LogFilterOptions
impl Sync for LogFilterOptions
impl Unpin for LogFilterOptions
impl UnwindSafe for LogFilterOptions
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