pub struct OfferService {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub source_instance_filter: Option<Vec<String>>,
pub renamed_instances: Option<Vec<NameMapping>>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
pub dependency_type: Option<DependencyType>,
}
Expand description
Declares a service offered by a component to one of its children, which may have been offered by the component’s containing realm, the component itself, or one of its other children.
To learn more about services, see: https://fuchsia.dev/fuchsia-src/glossary#service
Fields§
§source: Option<Ref>
§source_name: Option<String>
§target: Option<Ref>
§target_name: Option<String>
§source_instance_filter: Option<Vec<String>>
§renamed_instances: Option<Vec<NameMapping>>
§availability: Option<Availability>
§source_dictionary: Option<String>
§dependency_type: Option<DependencyType>
Trait Implementations§
Source§impl Clone for OfferService
impl Clone for OfferService
Source§fn clone(&self) -> OfferService
fn clone(&self) -> OfferService
Returns a copy of the value. Read more
1.0.0 · 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 OfferService
impl Debug for OfferService
Source§impl Encodable for OfferService
impl Encodable for OfferService
Source§type Encoded = WireOfferService
type Encoded = WireOfferService
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for OfferServicewhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for OfferServicewhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireOfferService> for OfferService
impl TakeFrom<WireOfferService> for OfferService
Source§fn take_from(from: &WireOfferService) -> Self
fn take_from(from: &WireOfferService) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for OfferService
impl RefUnwindSafe for OfferService
impl Send for OfferService
impl Sync for OfferService
impl Unpin for OfferService
impl UnwindSafe for OfferService
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