pub struct WinDebugSink { /* private fields */ }
Available on Windows and crate feature
native
only.Expand description
A sink with a win32 API OutputDebugStringW
as the target.
Implementations§
Source§impl WinDebugSink
impl WinDebugSink
Sourcepub fn builder() -> WinDebugSinkBuilder
pub fn builder() -> WinDebugSinkBuilder
Gets a builder of WinDebugSink
with default parameters:
Parameter | Default Value |
---|---|
level_filter | All |
formatter | FullFormatter |
error_handler | ErrorHandler::default() |
Sourcepub fn new() -> WinDebugSink
👎Deprecated since 0.3.0: it may be removed in the future, use WinDebugSink::builder()
instead
pub fn new() -> WinDebugSink
WinDebugSink::builder()
insteadConstructs a WinDebugSink
.
Trait Implementations§
Source§impl GetSinkProp for WinDebugSink
impl GetSinkProp for WinDebugSink
Auto Trait Implementations§
impl !Freeze for WinDebugSink
impl !RefUnwindSafe for WinDebugSink
impl Send for WinDebugSink
impl Sync for WinDebugSink
impl Unpin for WinDebugSink
impl !UnwindSafe for WinDebugSink
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S> SinkPropAccess for Swhere
S: GetSinkProp,
impl<S> SinkPropAccess for Swhere
S: GetSinkProp,
Source§fn level_filter(&self) -> LevelFilter
fn level_filter(&self) -> LevelFilter
Gets the log level filter.
Source§fn set_level_filter(&self, level_filter: LevelFilter)
fn set_level_filter(&self, level_filter: LevelFilter)
Sets the log level filter.
Source§fn set_formatter(&self, formatter: Box<dyn Formatter>)
fn set_formatter(&self, formatter: Box<dyn Formatter>)
Sets the formatter.
Source§fn set_error_handler(&self, handler: ErrorHandler)
fn set_error_handler(&self, handler: ErrorHandler)
Sets a error handler. Read more