pub struct LogOptions {
pub level: Option<LogLevel>,
pub ephemeral: Option<bool>,
}Expand description
Options for Session::log.
Pass None to log for defaults (info level, persisted to the session
event log on disk).
Fields§
§level: Option<LogLevel>Log severity. None lets the server pick (defaults to info).
ephemeral: Option<bool>When Some(true), the message is transient and not persisted to the
session event log on disk. None lets the server pick.
Implementations§
Source§impl LogOptions
impl LogOptions
Sourcepub fn with_level(self, level: LogLevel) -> Self
pub fn with_level(self, level: LogLevel) -> Self
Set level.
Sourcepub fn with_ephemeral(self, ephemeral: bool) -> Self
pub fn with_ephemeral(self, ephemeral: bool) -> Self
Set ephemeral.
Trait Implementations§
Source§impl Clone for LogOptions
impl Clone for LogOptions
Source§fn clone(&self) -> LogOptions
fn clone(&self) -> LogOptions
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 LogOptions
impl Debug for LogOptions
Source§impl Default for LogOptions
impl Default for LogOptions
Source§fn default() -> LogOptions
fn default() -> LogOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogOptions
impl<'de> Deserialize<'de> for LogOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LogOptions
impl PartialEq for LogOptions
Source§fn eq(&self, other: &LogOptions) -> bool
fn eq(&self, other: &LogOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LogOptions
impl Serialize for LogOptions
impl StructuralPartialEq for LogOptions
Auto Trait Implementations§
impl Freeze for LogOptions
impl RefUnwindSafe for LogOptions
impl Send for LogOptions
impl Sync for LogOptions
impl Unpin for LogOptions
impl UnsafeUnpin for LogOptions
impl UnwindSafe for LogOptions
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