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_system_partition_label(&mut self, label: &'static str) -> &mut Self
Sourcepub fn with_extra_gpt_partition(
&mut self,
volume_name: &'static str,
num_blocks: u64,
) -> &mut Self
pub fn with_extra_gpt_partition( &mut self, volume_name: &'static str, num_blocks: u64, ) -> &mut Self
Appends an additional GPT partition. The partitions are contiguous in the inserted order, and the first one is immediately after the system partition.
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> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [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