pub struct AndroidSinkBuilder { /* private fields */ }
Available on Android and crate feature
native
and crate feature android-ndk
only.Implementations§
Source§impl AndroidSinkBuilder
impl AndroidSinkBuilder
Sourcepub fn tag(self, tag: AndroidLogTag) -> Self
pub fn tag(self, tag: AndroidLogTag) -> Self
Specifies how to choose a tag for Android logs.
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<F>(self, formatter: F) -> Selfwhere
F: Formatter + 'static,
pub fn formatter<F>(self, formatter: F) -> Selfwhere
F: Formatter + 'static,
Specifies a formatter.
This parameter is optional.
Sourcepub fn error_handler<F: Into<ErrorHandler>>(self, handler: F) -> Self
pub fn error_handler<F: Into<ErrorHandler>>(self, handler: F) -> Self
Specifies an error handler.
This parameter is optional.
Sourcepub fn build(self) -> Result<AndroidSink>
pub fn build(self) -> Result<AndroidSink>
Constructs a AndroidSink
.
Auto Trait Implementations§
impl !Freeze for AndroidSinkBuilder
impl !RefUnwindSafe for AndroidSinkBuilder
impl Send for AndroidSinkBuilder
impl Sync for AndroidSinkBuilder
impl Unpin for AndroidSinkBuilder
impl !UnwindSafe for AndroidSinkBuilder
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