pub struct FormatCosts {
pub format_costs: Option<Vec<FormatCostEntry>>,
}Expand description
This is the root of the persistent fidl in a format costs file. The format costs files are read by the assembly tool and merged into the single sysmem_config.persistent_fidl file in the sysmem domain config (see Config above).
Normally json[5] would be preferable for config, but we generate this config in rust using FIDL types (to avoid repetition and to take advantage of FIDL rust codegen), and there’s no json schema for FIDL types.
While the resulting sysmem_config.persistent_fidl is a single file that can contain multiple aspects of sysmem config, in contrast a format costs file contains only format costs. We don’t mind having more separate files during the build, but it’s nice to get sysmem’s domain config down to a single file on-device.
Fields§
§format_costs: Option<Vec<FormatCostEntry>>Trait Implementations§
Source§impl Clone for FormatCosts
impl Clone for FormatCosts
Source§fn clone(&self) -> FormatCosts
fn clone(&self) -> FormatCosts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FormatCosts
impl Debug for FormatCosts
Source§impl Default for FormatCosts
impl Default for FormatCosts
Source§fn default() -> FormatCosts
fn default() -> FormatCosts
Source§impl<'a, ___E> Encode<FormatCosts<'static>, ___E> for &'a FormatCostswhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<FormatCosts<'static>, ___E> for &'a FormatCostswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<FormatCosts<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<FormatCosts<'static>>, _: (), ) -> Result<(), EncodeError>
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<FormatCosts<'static>, ___E> for FormatCostswhere
___E: Encoder + ?Sized,
impl<___E> Encode<FormatCosts<'static>, ___E> for FormatCostswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<FormatCosts<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<FormatCosts<'static>>, _: (), ) -> Result<(), EncodeError>
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<FormatCosts<'de>> for FormatCosts
impl<'de> FromWire<FormatCosts<'de>> for FormatCosts
Source§fn from_wire(wire_: FormatCosts<'de>) -> FormatCosts
fn from_wire(wire_: FormatCosts<'de>) -> FormatCosts
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<FormatCosts<'de>> for FormatCosts
impl<'de> FromWireRef<FormatCosts<'de>> for FormatCosts
Source§fn from_wire_ref(wire: &FormatCosts<'de>) -> FormatCosts
fn from_wire_ref(wire: &FormatCosts<'de>) -> FormatCosts
Source§impl PartialEq for FormatCosts
impl PartialEq for FormatCosts
Source§fn eq(&self, other: &FormatCosts) -> bool
fn eq(&self, other: &FormatCosts) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FormatCosts
impl PartialOrd for FormatCosts
impl StructuralPartialEq for FormatCosts
Auto Trait Implementations§
impl Freeze for FormatCosts
impl RefUnwindSafe for FormatCosts
impl Send for FormatCosts
impl Sync for FormatCosts
impl Unpin for FormatCosts
impl UnsafeUnpin for FormatCosts
impl UnwindSafe for FormatCosts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
§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
T to [Self]