pub struct DefaultSegmentBuilder { /* private fields */ }
Expand description
Default implementation for SegmentBuilder
trait.
Implementations§
Source§impl DefaultSegmentBuilder
impl DefaultSegmentBuilder
Sourcepub fn with_path<P: AsRef<Path>>(store_path: P) -> Self
pub fn with_path<P: AsRef<Path>>(store_path: P) -> Self
Init struct with given path.
Folder needs to exists and have correct permissions. This will not be checked here and it is the responsibility of the user to do this work.
In case folder does not exists segment creation may failed.
Sourcepub fn create_dir_all(&self) -> Result<()>
pub fn create_dir_all(&self) -> Result<()>
Make sure store folder exists.
Trait Implementations§
Source§impl Clone for DefaultSegmentBuilder
impl Clone for DefaultSegmentBuilder
Source§fn clone(&self) -> DefaultSegmentBuilder
fn clone(&self) -> DefaultSegmentBuilder
Returns a copy 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 moreSource§impl Debug for DefaultSegmentBuilder
impl Debug for DefaultSegmentBuilder
Source§impl Default for DefaultSegmentBuilder
impl Default for DefaultSegmentBuilder
Source§impl SegmentBuilder for DefaultSegmentBuilder
impl SegmentBuilder for DefaultSegmentBuilder
Source§fn new_segment_path(&self) -> PathBuf
fn new_segment_path(&self) -> PathBuf
Create path for new unique segment.
Auto Trait Implementations§
impl Freeze for DefaultSegmentBuilder
impl RefUnwindSafe for DefaultSegmentBuilder
impl Send for DefaultSegmentBuilder
impl Sync for DefaultSegmentBuilder
impl Unpin for DefaultSegmentBuilder
impl UnwindSafe for DefaultSegmentBuilder
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