pub struct Component {
pub url: Option<String>,
pub decl: Option<Data>,
pub package: Option<Package>,
pub config_values: Option<Data>,
pub resolution_context: Option<Context>,
pub abi_revision: Option<u64>,
}
Expand description
A component is a unit of executable software.
This object provides the component’s declaration, access to its package’s
content, and relevant metadata as resolved fuchsia.component.resolution.Resolver
.
Fields§
§url: Option<String>
§decl: Option<Data>
§package: Option<Package>
§config_values: Option<Data>
§resolution_context: Option<Context>
§abi_revision: Option<u64>
Trait Implementations§
Source§impl Encodable for Component
impl Encodable for Component
Source§type Encoded = WireComponent<'static>
type Encoded = WireComponent<'static>
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl<'de> FromWire<WireComponent<'de>> for Component
impl<'de> FromWire<WireComponent<'de>> for Component
Source§fn from_wire(wire: WireComponent<'de>) -> Self
fn from_wire(wire: WireComponent<'de>) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.