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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more