pub struct DittoBuilder { /* private fields */ }Expand description
Use Ditto::builder() to initialize a Ditto instance.
Implementations§
Source§impl DittoBuilder
impl DittoBuilder
Sourcepub fn with_root(self, ditto_root: Arc<dyn DittoRoot>) -> Self
pub fn with_root(self, ditto_root: Arc<dyn DittoRoot>) -> Self
Set the root directory where Ditto will store its data.
Sourcepub fn with_minimum_log_level(self, log_level: LogLevel) -> Self
pub fn with_minimum_log_level(self, log_level: LogLevel) -> Self
Configure the minimum log level for the Ditto instance.
Sourcepub fn with_temp_dir(self) -> Self
pub fn with_temp_dir(self) -> Self
Build a Ditto instance with a temporary storage directory which
will be destroyed on exit.
Sourcepub fn with_identity<F, I>(self, factory: F) -> Result<Self, DittoError>
pub fn with_identity<F, I>(self, factory: F) -> Result<Self, DittoError>
Sourcepub fn with_transport_config<T>(self, factory: T) -> Result<Self, DittoError>
pub fn with_transport_config<T>(self, factory: T) -> Result<Self, DittoError>
Provide a factory for the TransportConfig used by the
Ditto instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DittoBuilder
impl !RefUnwindSafe for DittoBuilder
impl Send for DittoBuilder
impl Sync for DittoBuilder
impl Unpin for DittoBuilder
impl !UnwindSafe for DittoBuilder
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