Struct UnifiedLoggerBuilder
pub struct UnifiedLoggerBuilder { /* private fields */ }
Expand description
Use this builder to create a new DataLogger.
Implementations§
§impl UnifiedLoggerBuilder
impl UnifiedLoggerBuilder
pub fn new() -> UnifiedLoggerBuilder
pub fn file_base_name(self, file_path: &Path) -> UnifiedLoggerBuilder
pub fn file_base_name(self, file_path: &Path) -> UnifiedLoggerBuilder
If “something/toto.copper” is given, it will find or create “something/toto_0.copper”, “something/toto_1.copper” etc.
pub fn preallocated_size(self, preallocated_size: usize) -> UnifiedLoggerBuilder
pub fn write(self, write: bool) -> UnifiedLoggerBuilder
pub fn create(self, create: bool) -> UnifiedLoggerBuilder
pub fn build(self) -> Result<UnifiedLogger, Error>
Trait Implementations§
§impl Default for UnifiedLoggerBuilder
impl Default for UnifiedLoggerBuilder
§fn default() -> UnifiedLoggerBuilder
fn default() -> UnifiedLoggerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnifiedLoggerBuilder
impl RefUnwindSafe for UnifiedLoggerBuilder
impl Send for UnifiedLoggerBuilder
impl Sync for UnifiedLoggerBuilder
impl Unpin for UnifiedLoggerBuilder
impl UnwindSafe for UnifiedLoggerBuilder
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