pub struct Config {Show 31 fields
pub blobfs: bool,
pub blobfs_cache_eviction_policy: String,
pub blobfs_initial_inodes: u64,
pub blobfs_max_bytes: u64,
pub blobfs_use_deprecated_padded_format: bool,
pub blobfs_write_compression_algorithm: String,
pub bootpart: bool,
pub check_filesystems: bool,
pub data: bool,
pub data_filesystem_format: String,
pub data_max_bytes: u64,
pub disable_automount: bool,
pub disable_block_watcher: bool,
pub factory: bool,
pub format_data_on_corruption: bool,
pub fvm: bool,
pub fvm_slice_size: u64,
pub fxfs_blob: bool,
pub fxfs_crypt_url: String,
pub gpt: bool,
pub gpt_all: bool,
pub inline_crypto: bool,
pub mbr: bool,
pub merge_super_and_userdata: bool,
pub no_zxcrypt: bool,
pub provision_fxfs: bool,
pub ramdisk_image: bool,
pub starnix_volume_name: String,
pub storage_host: bool,
pub use_disk_migration: bool,
pub watch_deprecated_v1_drivers: bool,
}Fields§
§blobfs: bool§blobfs_cache_eviction_policy: String§blobfs_initial_inodes: u64§blobfs_max_bytes: u64§blobfs_use_deprecated_padded_format: bool§blobfs_write_compression_algorithm: String§bootpart: bool§check_filesystems: bool§data: bool§data_filesystem_format: String§data_max_bytes: u64§disable_automount: bool§disable_block_watcher: bool§factory: bool§format_data_on_corruption: bool§fvm: bool§fvm_slice_size: u64§fxfs_blob: bool§fxfs_crypt_url: String§gpt: bool§gpt_all: bool§inline_crypto: bool§mbr: bool§merge_super_and_userdata: bool§no_zxcrypt: bool§provision_fxfs: bool§ramdisk_image: bool§starnix_volume_name: String§storage_host: bool§use_disk_migration: bool§watch_deprecated_v1_drivers: boolImplementations§
Source§impl Config
impl Config
Sourcepub fn take_from_startup_handle() -> Self
pub fn take_from_startup_handle() -> Self
Take the config startup handle and parse its contents.
§Panics
If the config startup handle was already taken or if it is not valid.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Parse Self from bytes.
pub fn record_inspect(&self, inspector_node: &Node)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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,
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