pub struct SubscriberBuilder { /* private fields */ }
Implementations§
Source§impl SubscriberBuilder
impl SubscriberBuilder
pub fn new() -> Self
pub fn with_max_level(self, max_level: LevelFilter) -> Self
Sourcepub fn with_black_list(
self,
black_list: impl IntoIterator<Item = &'static str>,
) -> Self
pub fn with_black_list( self, black_list: impl IntoIterator<Item = &'static str>, ) -> Self
A log will not be recorded if its module path starts with any of item in the black list.
Sourcepub fn with_white_list(
self,
white_list: impl IntoIterator<Item = &'static str>,
) -> Self
pub fn with_white_list( self, white_list: impl IntoIterator<Item = &'static str>, ) -> Self
A log may be recorded only if its module path starts with any of item in the white list.
pub fn build(self, conn: Connection) -> Subscriber
pub fn build_prepared(self, conn: Connection) -> Result<Subscriber, Error>
Trait Implementations§
Source§impl Debug for SubscriberBuilder
impl Debug for SubscriberBuilder
Auto Trait Implementations§
impl Freeze for SubscriberBuilder
impl RefUnwindSafe for SubscriberBuilder
impl Send for SubscriberBuilder
impl Sync for SubscriberBuilder
impl Unpin for SubscriberBuilder
impl UnwindSafe for SubscriberBuilder
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