pub struct StdStreamSinkBuilder<ArgSS> { /* private fields */ }
Expand description
Implementations§
Source§impl<ArgSS> StdStreamSinkBuilder<ArgSS>
impl<ArgSS> StdStreamSinkBuilder<ArgSS>
Sourcepub fn stdout(self) -> StdStreamSinkBuilder<StdStream>
pub fn stdout(self) -> StdStreamSinkBuilder<StdStream>
Specifies the target standard stream as stdout.
This is equivalent to std_stream(StdStream::Stdout)
.
Sourcepub fn stderr(self) -> StdStreamSinkBuilder<StdStream>
pub fn stderr(self) -> StdStreamSinkBuilder<StdStream>
Specifies the target standard stream as stderr.
This is equivalent to std_stream(StdStream::Stderr)
.
Sourcepub fn std_stream(
self,
std_stream: StdStream,
) -> StdStreamSinkBuilder<StdStream>
pub fn std_stream( self, std_stream: StdStream, ) -> StdStreamSinkBuilder<StdStream>
Specifies the target standard stream.
This parameter is required.
Sourcepub fn style_mode(self, style_mode: StyleMode) -> Self
pub fn style_mode(self, style_mode: StyleMode) -> Self
Specifies the style mode.
This parameter is optional.
Sourcepub fn level_filter(self, level_filter: LevelFilter) -> Self
pub fn level_filter(self, level_filter: LevelFilter) -> Self
Specifies a log level filter.
This parameter is optional.
Sourcepub fn formatter(self, formatter: Box<dyn Formatter>) -> Self
pub fn formatter(self, formatter: Box<dyn Formatter>) -> Self
Specifies a formatter.
This parameter is optional.
Sourcepub fn error_handler(self, handler: ErrorHandler) -> Self
pub fn error_handler(self, handler: ErrorHandler) -> Self
Specifies an error handler.
This parameter is optional.
Source§impl StdStreamSinkBuilder<StdStream>
impl StdStreamSinkBuilder<StdStream>
Sourcepub fn build(self) -> Result<StdStreamSink>
pub fn build(self) -> Result<StdStreamSink>
Builds a StdStreamSink
.
Auto Trait Implementations§
impl<ArgSS> Freeze for StdStreamSinkBuilder<ArgSS>where
ArgSS: Freeze,
impl<ArgSS> !RefUnwindSafe for StdStreamSinkBuilder<ArgSS>
impl<ArgSS> Send for StdStreamSinkBuilder<ArgSS>where
ArgSS: Send,
impl<ArgSS> Sync for StdStreamSinkBuilder<ArgSS>where
ArgSS: Sync,
impl<ArgSS> Unpin for StdStreamSinkBuilder<ArgSS>where
ArgSS: Unpin,
impl<ArgSS> !UnwindSafe for StdStreamSinkBuilder<ArgSS>
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