pub struct DebugLog { /* private fields */ }Expand description
Appends diagnostic lines to one file.
Implementations§
Source§impl DebugLog
impl DebugLog
Sourcepub fn from_env(adapter: &str) -> Option<Self>
pub fn from_env(adapter: &str) -> Option<Self>
Open the log named by the process environment, or None.
Sourcepub fn open(path: &str, adapter: &str) -> Option<Self>
pub fn open(path: &str, adapter: &str) -> Option<Self>
Append to path, or return None when it cannot be opened.
Returning None rather than an error is deliberate: a diagnostic that
refuses to start must not stop the application, and no caller has
anything to do with the failure.
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Adopt the driver’s session id once the handshake supplies one, truncated to the eight characters the driver’s own log uses.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DebugLog
impl RefUnwindSafe for DebugLog
impl Send for DebugLog
impl Sync for DebugLog
impl Unpin for DebugLog
impl UnsafeUnpin for DebugLog
impl UnwindSafe for DebugLog
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