pub struct Logging { /* private fields */ }Expand description
Provider-specific logging intent.
A missing options collection differs from an explicit empty collection, which can reset provider defaults. Option names and values remain opaque and ordered.
Implementations§
Source§impl Logging
impl Logging
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates an empty logging declaration for incremental source-adapter mapping.
Sourcepub fn set_driver(&mut self, driver: Sourced<ProtectedString>)
pub fn set_driver(&mut self, driver: Sourced<ProtectedString>)
Sets the provider-specific logging driver spelling.
Sourcepub const fn driver(&self) -> Option<&Sourced<ProtectedString>>
pub const fn driver(&self) -> Option<&Sourced<ProtectedString>>
Returns the explicitly authored logging driver.
Sourcepub fn set_options(&mut self, options: Vec<Sourced<LoggingOption>>)
pub fn set_options(&mut self, options: Vec<Sourced<LoggingOption>>)
Sets ordered logging options while preserving explicit emptiness.
Sourcepub fn add_option(&mut self, option: Sourced<LoggingOption>)
pub fn add_option(&mut self, option: Sourced<LoggingOption>)
Appends one logging option in source order.
Sourcepub fn set_options_with_origins(
&mut self,
options: Vec<Sourced<LoggingOption>>,
origins: Vec<Provenance>,
)
pub fn set_options_with_origins( &mut self, options: Vec<Sourced<LoggingOption>>, origins: Vec<Provenance>, )
Sets ordered logging options and collection-level provenance.
Sourcepub fn options(&self) -> Option<&[Sourced<LoggingOption>]>
pub fn options(&self) -> Option<&[Sourced<LoggingOption>]>
Returns ordered logging options, preserving omitted versus explicit-empty state.
Sourcepub fn options_origins(&self) -> &[Provenance]
pub fn options_origins(&self) -> &[Provenance]
Returns collection-level logging option provenance.
Trait Implementations§
impl Eq for Logging
impl StructuralPartialEq for Logging
Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnsafeUnpin for Logging
impl UnwindSafe for Logging
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