pub struct LoggingOption { /* private fields */ }Expand description
One provider-specific logging option with independently sourced name and value.
Implementations§
Source§impl LoggingOption
impl LoggingOption
Sourcepub const fn new(
name: Sourced<Identifier>,
value: Sourced<ProtectedString>,
) -> Self
pub const fn new( name: Sourced<Identifier>, value: Sourced<ProtectedString>, ) -> Self
Creates one logging option without imposing a provider’s option grammar.
Sourcepub const fn name(&self) -> &Sourced<Identifier>
pub const fn name(&self) -> &Sourced<Identifier>
Returns the provider-specific option name and its provenance.
Sourcepub const fn value(&self) -> &Sourced<ProtectedString>
pub const fn value(&self) -> &Sourced<ProtectedString>
Returns the protected provider-specific option value and its provenance.
Trait Implementations§
Source§impl Clone for LoggingOption
impl Clone for LoggingOption
Source§fn clone(&self) -> LoggingOption
fn clone(&self) -> LoggingOption
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 LoggingOption
impl Debug for LoggingOption
impl Eq for LoggingOption
Source§impl PartialEq for LoggingOption
impl PartialEq for LoggingOption
impl StructuralPartialEq for LoggingOption
Auto Trait Implementations§
impl Freeze for LoggingOption
impl RefUnwindSafe for LoggingOption
impl Send for LoggingOption
impl Sync for LoggingOption
impl Unpin for LoggingOption
impl UnsafeUnpin for LoggingOption
impl UnwindSafe for LoggingOption
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