pub struct RawCreateBuilder<S: Storage + 'static>(FormatCreateBuilderBase<S>);
Expand description
Creation builder for a new raw image.
Tuple Fields§
§0: FormatCreateBuilderBase<S>
Trait Implementations§
Source§impl<S: Storage + 'static> FormatCreateBuilder<S> for RawCreateBuilder<S>
impl<S: Storage + 'static> FormatCreateBuilder<S> for RawCreateBuilder<S>
Source§type DriverBuilder = RawOpenBuilder<S>
type DriverBuilder = RawOpenBuilder<S>
Open builder type for this format.
Source§fn preallocate(self, prealloc_mode: PreallocateMode) -> Self
fn preallocate(self, prealloc_mode: PreallocateMode) -> Self
Set the desired preallocation mode.
Source§fn get_preallocate(&self) -> PreallocateMode
fn get_preallocate(&self) -> PreallocateMode
Get the preallocation mode.
Source§async fn create_open<G: ImplicitOpenGate<S>, F: FnOnce(S) -> Result<Self::DriverBuilder>>(
self,
open_gate: G,
open_builder_fn: F,
) -> Result<Raw<S>>
async fn create_open<G: ImplicitOpenGate<S>, F: FnOnce(S) -> Result<Self::DriverBuilder>>( self, open_gate: G, open_builder_fn: F, ) -> Result<Raw<S>>
Format the image file and open it. Read more
Auto Trait Implementations§
impl<S> Freeze for RawCreateBuilder<S>where
S: Freeze,
impl<S> RefUnwindSafe for RawCreateBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for RawCreateBuilder<S>
impl<S> Sync for RawCreateBuilder<S>
impl<S> Unpin for RawCreateBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for RawCreateBuilder<S>where
S: UnwindSafe,
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