pub struct Protocol {
pub name: Option<String>,
pub source_path: Option<String>,
pub delivery: Option<DeliveryType>,
}
Expand description
Declares a protocol capability backed by this component.
To learn more about protocols, see: https://fuchsia.dev/fuchsia-src/glossary#protocol
Fields§
§name: Option<String>
§source_path: Option<String>
§delivery: Option<DeliveryType>
Trait Implementations§
Source§impl Encodable for Protocol
impl Encodable for Protocol
Source§type Encoded = WireProtocol
type Encoded = WireProtocol
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 TakeFrom<WireProtocol> for Protocol
impl TakeFrom<WireProtocol> for Protocol
Source§fn take_from(from: &WireProtocol) -> Self
fn take_from(from: &WireProtocol) -> 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 Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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