pub struct OfferProtocol {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub dependency_type: Option<DependencyType>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
}
Expand description
Declares a protocol 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 protocols, see: https://fuchsia.dev/fuchsia-src/glossary#protocol
Fields§
§source: Option<Ref>
§source_name: Option<String>
§target: Option<Ref>
§target_name: Option<String>
§dependency_type: Option<DependencyType>
§availability: Option<Availability>
§source_dictionary: Option<String>
Trait Implementations§
Source§impl Clone for OfferProtocol
impl Clone for OfferProtocol
Source§fn clone(&self) -> OfferProtocol
fn clone(&self) -> OfferProtocol
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 OfferProtocol
impl Debug for OfferProtocol
Source§impl Encodable for OfferProtocol
impl Encodable for OfferProtocol
Source§type Encoded = WireOfferProtocol
type Encoded = WireOfferProtocol
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 OfferProtocolwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for OfferProtocolwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireOfferProtocol> for OfferProtocol
impl TakeFrom<WireOfferProtocol> for OfferProtocol
Source§fn take_from(from: &WireOfferProtocol) -> Self
fn take_from(from: &WireOfferProtocol) -> 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 OfferProtocol
impl RefUnwindSafe for OfferProtocol
impl Send for OfferProtocol
impl Sync for OfferProtocol
impl Unpin for OfferProtocol
impl UnwindSafe for OfferProtocol
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