BoxedIo

Type Alias BoxedIo 

Source
pub type BoxedIo<F: MessageFormatter> = IoWrite<Box<dyn Write + Send + Sync>, F>;
Expand description

A type alias for an IoWrite service using a dynamic trait object.

This is particularly useful when you need to change the logging destination at runtime (e.g., switching from a File to a Network stream).

Bound Requirements: The inner writer must be Send + Sync + 'static.

Aliased Typeยง

pub struct BoxedIo<F: MessageFormatter> { /* private fields */ }