Struct logid::event_handler::builder::LogEventHandlerBuilder
source · pub struct LogEventHandlerBuilder<K> { /* private fields */ }
Implementations§
source§impl LogEventHandlerBuilder<NoKind>
impl LogEventHandlerBuilder<NoKind>
pub fn new() -> Self
pub fn add_handler( self, handler: impl FnMut(Arc<Event<LogId, LogMsg, LogEventEntry>>) + Send + 'static ) -> Self
pub fn to_stderr(self) -> Self
pub fn to_stdout(self) -> Self
pub fn all_log_events(self) -> LogEventHandlerBuilder<AllLogs>
pub fn for_log_ids( self, ids: impl Iterator<Item = LogId> ) -> LogEventHandlerBuilder<SpecificLogs>
source§impl LogEventHandlerBuilder<AllLogs>
impl LogEventHandlerBuilder<AllLogs>
pub fn build(self) -> Result<LogEventHandler, LogEventHandlerError>
source§impl LogEventHandlerBuilder<SpecificLogs>
impl LogEventHandlerBuilder<SpecificLogs>
pub fn build(self) -> Result<LogEventHandler, LogEventHandlerError>
Trait Implementations§
source§impl<K: Default> Default for LogEventHandlerBuilder<K>
impl<K: Default> Default for LogEventHandlerBuilder<K>
source§fn default() -> LogEventHandlerBuilder<K>
fn default() -> LogEventHandlerBuilder<K>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<K> !RefUnwindSafe for LogEventHandlerBuilder<K>
impl<K> Send for LogEventHandlerBuilder<K>where K: Send,
impl<K> !Sync for LogEventHandlerBuilder<K>
impl<K> Unpin for LogEventHandlerBuilder<K>where K: Unpin,
impl<K> !UnwindSafe for LogEventHandlerBuilder<K>
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