pub struct Builder { /* private fields */ }
Expand description
Builder for RandomAccessDisk
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn new(filename: impl AsRef<Path>) -> Self
pub fn new(filename: impl AsRef<Path>) -> Self
Create new builder at path
(with auto-sync true by default).
Sourcepub async fn build(self) -> Result<RandomAccessDisk, RandomAccessError>
pub async fn build(self) -> Result<RandomAccessDisk, RandomAccessError>
Build a RandomAccessDisk instance
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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