pub struct DiskBuilder { /* private fields */ }
Implementations§
Source§impl DiskBuilder
impl DiskBuilder
pub fn uninitialized() -> DiskBuilder
pub fn new() -> DiskBuilder
pub fn set_uninitialized(&mut self) -> &mut Self
pub fn size(&mut self, size: u64) -> &mut Self
pub fn data_volume_size(&mut self, data_volume_size: u64) -> &mut Self
pub fn format_volumes(&mut self, volumes_spec: VolumesSpec) -> &mut Self
pub fn format_data(&mut self, data_spec: DataSpec) -> &mut Self
pub fn set_fs_switch(&mut self, content: &str) -> &mut Self
pub fn corrupt_data(&mut self) -> &mut Self
pub fn with_gpt(&mut self) -> &mut Self
pub fn with_extra_volume(&mut self, volume_name: &'static str) -> &mut Self
pub fn with_unformatted_volume_manager(&mut self) -> &mut Self
pub fn with_legacy_data_label(&mut self) -> &mut Self
pub async fn build(self) -> (Vmo, Option<[u8; 16]>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiskBuilder
impl RefUnwindSafe for DiskBuilder
impl Send for DiskBuilder
impl Sync for DiskBuilder
impl Unpin for DiskBuilder
impl UnwindSafe for DiskBuilder
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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