pub struct KBConfig {
pub kernel_file_path: PathBuf,
pub initramfs_file_path: Option<PathBuf>,
pub kernel_config_file_path: PathBuf,
pub kernel_src: PathBuf,
pub keep_last_kernel: bool,
pub last_kernel_suffix: Option<String>,
pub cleanup_keep_count: Option<u32>,
}Fields§
§kernel_file_path: PathBuf§initramfs_file_path: Option<PathBuf>§kernel_config_file_path: PathBuf§kernel_src: PathBuf§keep_last_kernel: bool§last_kernel_suffix: Option<String>§cleanup_keep_count: Option<u32>Implementations§
Source§impl KBConfig
impl KBConfig
Sourcepub fn validate(&self) -> Result<(), BuilderErr>
pub fn validate(&self) -> Result<(), BuilderErr>
pub fn to_kernel_paths(&self) -> KernelPaths
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KBConfig
impl<'de> Deserialize<'de> for KBConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KBConfig
impl RefUnwindSafe for KBConfig
impl Send for KBConfig
impl Sync for KBConfig
impl Unpin for KBConfig
impl UnsafeUnpin for KBConfig
impl UnwindSafe for KBConfig
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