pub struct BootProfile {
pub id: String,
pub display_name: Option<String>,
pub rootfs: BootProfileRootfs,
pub kernel: Option<BootProfileArtifactPathSource>,
pub dtbs: Option<BootProfileArtifactPathSource>,
pub dt_overlays: Vec<Vec<u8>>,
pub extra_cmdline: Option<String>,
pub stage0: BootProfileStage0,
}Expand description
Runtime boot profile with precompiled DT overlays.
Fields§
§id: String§display_name: Option<String>§rootfs: BootProfileRootfs§kernel: Option<BootProfileArtifactPathSource>§dtbs: Option<BootProfileArtifactPathSource>§dt_overlays: Vec<Vec<u8>>§extra_cmdline: Option<String>§stage0: BootProfileStage0Implementations§
Source§impl BootProfile
impl BootProfile
pub fn decompile_dt_overlays<E, F>( &self, decompile: F, ) -> Result<BootProfileManifest, E>
Trait Implementations§
Source§impl Clone for BootProfile
impl Clone for BootProfile
Source§fn clone(&self) -> BootProfile
fn clone(&self) -> BootProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootProfile
impl Debug for BootProfile
Source§impl<'de> Deserialize<'de> for BootProfile
impl<'de> Deserialize<'de> for BootProfile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BootProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BootProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BootProfile> for BootProfileBin
impl From<BootProfile> for BootProfileBin
Source§fn from(profile: BootProfile) -> BootProfileBin
fn from(profile: BootProfile) -> BootProfileBin
Converts to this type from the input type.
Source§impl From<BootProfileBin> for BootProfile
impl From<BootProfileBin> for BootProfile
Source§fn from(profile: BootProfileBin) -> BootProfile
fn from(profile: BootProfileBin) -> BootProfile
Converts to this type from the input type.
Source§impl PartialEq for BootProfile
impl PartialEq for BootProfile
Source§fn eq(&self, other: &BootProfile) -> bool
fn eq(&self, other: &BootProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BootProfile
impl Serialize for BootProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BootProfile
impl StructuralPartialEq for BootProfile
Auto Trait Implementations§
impl Freeze for BootProfile
impl RefUnwindSafe for BootProfile
impl Send for BootProfile
impl Sync for BootProfile
impl Unpin for BootProfile
impl UnsafeUnpin for BootProfile
impl UnwindSafe for BootProfile
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