pub struct PeermergeDiskOptionsBuilder { /* private fields */ }Expand description
Builder for PeermergeDiskOptions.
Implementations§
Source§impl PeermergeDiskOptionsBuilder
impl PeermergeDiskOptionsBuilder
Sourcepub fn data_root_dir(&mut self, value: PathBuf) -> &mut Self
pub fn data_root_dir(&mut self, value: PathBuf) -> &mut Self
Root directory for all peermerge data. Sub-directories will be created under this for each document.
Sourcepub fn default_peer_header(&mut self, value: NameDescription) -> &mut Self
pub fn default_peer_header(&mut self, value: NameDescription) -> &mut Self
Default peer name/description
Sourcepub fn state_event_sender<VALUE: Into<UnboundedSender<StateEvent>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn state_event_sender<VALUE: Into<UnboundedSender<StateEvent>>>( &mut self, value: VALUE, ) -> &mut Self
State event sender, can also be given with set_state_event_sender().
Sourcepub fn max_entry_data_size_bytes(&mut self, value: usize) -> &mut Self
pub fn max_entry_data_size_bytes(&mut self, value: usize) -> &mut Self
Maximum size of a data entry. Defaults to DEFAULT_MAX_ENTRY_DATA_SIZE_BYTES.
Sourcepub fn max_write_feed_length(&mut self, value: u64) -> &mut Self
pub fn max_write_feed_length(&mut self, value: u64) -> &mut Self
Maximum length of the write feed data entry. Defaults to DEFAULT_MAX_WRITE_FEED_LENGTH.
Sourcepub fn build(
&self,
) -> Result<PeermergeDiskOptions, PeermergeDiskOptionsBuilderError>
pub fn build( &self, ) -> Result<PeermergeDiskOptions, PeermergeDiskOptionsBuilderError>
Trait Implementations§
Source§impl Clone for PeermergeDiskOptionsBuilder
impl Clone for PeermergeDiskOptionsBuilder
Source§fn clone(&self) -> PeermergeDiskOptionsBuilder
fn clone(&self) -> PeermergeDiskOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PeermergeDiskOptionsBuilder
impl !RefUnwindSafe for PeermergeDiskOptionsBuilder
impl Send for PeermergeDiskOptionsBuilder
impl Sync for PeermergeDiskOptionsBuilder
impl Unpin for PeermergeDiskOptionsBuilder
impl !UnwindSafe for PeermergeDiskOptionsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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