Struct dittolive_ditto::ditto::builder::DittoBuilder [−][src]
pub struct DittoBuilder { /* fields omitted */ }
Implementations
Create a new, empty builder for a Ditto instance
Set root directory where Ditto will store its data
Configure the minimum log level for the Ditto instance
Build a Ditto instance with a temporary storage directory which will be destroyed on exit
pub fn with_identity<F, I>(self, factory: F) -> Result<Self, DittoError> where
F: FnOnce(Arc<dyn DittoRoot>) -> Result<I, DittoError>,
I: Identity + 'static,
pub fn with_identity<F, I>(self, factory: F) -> Result<Self, DittoError> where
F: FnOnce(Arc<dyn DittoRoot>) -> Result<I, DittoError>,
I: Identity + 'static,
Provide a factory FnOnce which will create and configure the Identity for the Ditto instance
pub fn with_transport_config<T>(self, factory: T) -> Result<Self, DittoError> where
T: FnOnce(Arc<dyn Identity>) -> TransportConfig,
pub fn with_transport_config<T>(self, factory: T) -> Result<Self, DittoError> where
T: FnOnce(Arc<dyn Identity>) -> TransportConfig,
Provide a factory for the TransportConfig used by the Ditto instance
Builds the Ditto instance, consuming the builder the process
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DittoBuilder
impl !Send for DittoBuilder
impl !Sync for DittoBuilder
impl Unpin for DittoBuilder
impl !UnwindSafe for DittoBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more