pub struct UseProtocol {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target_path: Option<String>,
pub dependency_type: Option<DependencyType>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
}
Expand description
Declares a protocol used by a component, which was offered to it.
A protocol is a service with a single instance, provided by a single FIDL protocol.
Fields§
§source: Option<Ref>
§source_name: Option<String>
§target_path: Option<String>
§dependency_type: Option<DependencyType>
§availability: Option<Availability>
§source_dictionary: Option<String>
Trait Implementations§
Source§impl Clone for UseProtocol
impl Clone for UseProtocol
Source§fn clone(&self) -> UseProtocol
fn clone(&self) -> UseProtocol
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 UseProtocol
impl Debug for UseProtocol
Source§impl Encodable for UseProtocol
impl Encodable for UseProtocol
Source§type Encoded = WireUseProtocol
type Encoded = WireUseProtocol
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 UseProtocolwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for UseProtocolwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireUseProtocol> for UseProtocol
impl TakeFrom<WireUseProtocol> for UseProtocol
Source§fn take_from(from: &WireUseProtocol) -> Self
fn take_from(from: &WireUseProtocol) -> 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 UseProtocol
impl RefUnwindSafe for UseProtocol
impl Send for UseProtocol
impl Sync for UseProtocol
impl Unpin for UseProtocol
impl UnwindSafe for UseProtocol
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