Struct log_listener::LocalOptions
source · pub(crate) struct LocalOptions {Show 15 fields
pub(crate) file: Option<String>,
pub(crate) file_capacity: u64,
pub(crate) startup_sleep: u64,
pub(crate) ignore_tags: HashSet<String>,
pub(crate) clock: Clock,
pub(crate) time_format: String,
pub(crate) since_time: Option<i64>,
pub(crate) is_pretty: bool,
pub(crate) begin: Vec<String>,
pub(crate) end: Vec<String>,
pub(crate) only: Vec<String>,
pub(crate) suppress: Vec<String>,
pub(crate) dump_logs: bool,
pub(crate) hide_metadata: bool,
pub(crate) color_components: bool,
}
Fields§
§file: Option<String>
§file_capacity: u64
§startup_sleep: u64
§clock: Clock
§time_format: String
§since_time: Option<i64>
§is_pretty: bool
§begin: Vec<String>
§end: Vec<String>
§only: Vec<String>
§suppress: Vec<String>
§dump_logs: bool
§hide_metadata: bool
§color_components: bool
Implementations§
source§impl LocalOptions
impl LocalOptions
pub(crate) fn format_time(&self, timestamp: zx_time_t) -> String
pub(crate) fn _monotonic_to_utc(&self, timestamp: zx_time_t) -> NaiveDateTime
Trait Implementations§
source§impl Clone for LocalOptions
impl Clone for LocalOptions
source§fn clone(&self) -> LocalOptions
fn clone(&self) -> LocalOptions
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 LocalOptions
impl Debug for LocalOptions
source§impl Default for LocalOptions
impl Default for LocalOptions
source§fn default() -> LocalOptions
fn default() -> LocalOptions
Returns the “default value” for a type. Read more
source§impl PartialEq<LocalOptions> for LocalOptions
impl PartialEq<LocalOptions> for LocalOptions
source§fn eq(&self, other: &LocalOptions) -> bool
fn eq(&self, other: &LocalOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.