pub struct DebugProtocolRegistration {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target_name: Option<String>,
}
Expand description
Registers a protocol in the environment as a debug capability. This makes
it available to any component in the environment that uses it with
source == debug
.
To learn more about protocols, see: https://fuchsia.dev/fuchsia-src/glossary#protocol
Fields§
§source: Option<Ref>
§source_name: Option<String>
§target_name: Option<String>
Trait Implementations§
Source§impl Clone for DebugProtocolRegistration
impl Clone for DebugProtocolRegistration
Source§fn clone(&self) -> DebugProtocolRegistration
fn clone(&self) -> DebugProtocolRegistration
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 DebugProtocolRegistration
impl Debug for DebugProtocolRegistration
Source§impl Encodable for DebugProtocolRegistration
impl Encodable for DebugProtocolRegistration
Source§type Encoded = WireDebugProtocolRegistration
type Encoded = WireDebugProtocolRegistration
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 DebugProtocolRegistrationwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for DebugProtocolRegistrationwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireDebugProtocolRegistration> for DebugProtocolRegistration
impl TakeFrom<WireDebugProtocolRegistration> for DebugProtocolRegistration
Source§fn take_from(from: &WireDebugProtocolRegistration) -> Self
fn take_from(from: &WireDebugProtocolRegistration) -> 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 DebugProtocolRegistration
impl RefUnwindSafe for DebugProtocolRegistration
impl Send for DebugProtocolRegistration
impl Sync for DebugProtocolRegistration
impl Unpin for DebugProtocolRegistration
impl UnwindSafe for DebugProtocolRegistration
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