pub struct SerialConfig { /* private fields */ }
Implementations§
Source§impl SerialConfig
impl SerialConfig
Sourcepub fn new<C, T>(allowed_components: Vec<C>, denied_tags: Vec<T>) -> Self
pub fn new<C, T>(allowed_components: Vec<C>, denied_tags: Vec<T>) -> Self
Creates a new serial configuration from the given structured config values.
Sourcepub async fn write_logs<S: Write>(self, repo: Arc<LogsRepository>, sink: S)
pub async fn write_logs<S: Write>(self, repo: Arc<LogsRepository>, sink: S)
Returns a future that resolves when there’s no more logs to write to serial. This can only happen when all log sink connections have been closed for the components that were configured to emit logs.
Trait Implementations§
Source§impl Default for SerialConfig
impl Default for SerialConfig
Source§fn default() -> SerialConfig
fn default() -> SerialConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerialConfig
impl RefUnwindSafe for SerialConfig
impl Send for SerialConfig
impl Sync for SerialConfig
impl Unpin for SerialConfig
impl UnwindSafe for SerialConfig
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