pub struct BlockDeviceConfig {
pub requires_fvm: bool,
pub use_zxcrypt: bool,
pub volume_size: Option<u64>,
}
Expand description
Block device configuration options.
Fields§
§requires_fvm: bool
If true, the block device will always be added to an FVM volume. If the system has an FVM instance, it’ll be added in there, and otherwise a test-only FVM instance will be spawned and the volume will be added to that instance. Note that even if this is false, the block device might end up in an FVM volume (particularly when the system uses FVM).
use_zxcrypt: bool
If true, zxcrypt is initialized on top of the block device.
volume_size: Option<u64>
For non-FVM volumes, this is the size of the volume and is required to be set. For FVM volumes, this is optional, and if set will pre-size the volume.
Auto Trait Implementations§
impl Freeze for BlockDeviceConfig
impl RefUnwindSafe for BlockDeviceConfig
impl Send for BlockDeviceConfig
impl Sync for BlockDeviceConfig
impl Unpin for BlockDeviceConfig
impl UnwindSafe for BlockDeviceConfig
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