pub struct Configuration {
pub name: Option<String>,
pub value: Option<ConfigValue>,
}
Expand description
Declares a configuration capability.
To learn more about configuration capabilities, see: https://fuchsia.dev/fuchsia-src/glossary#configuration-capability or: https://fuchsia.dev/fuchsia-src/docs/concepts/components/v2/capabilities/configuration
Fields§
§name: Option<String>
§value: Option<ConfigValue>
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 Configuration
impl Debug for Configuration
Source§impl Encodable for Configuration
impl Encodable for Configuration
Source§type Encoded = WireConfiguration
type Encoded = WireConfiguration
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 Configurationwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for Configurationwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireConfiguration> for Configuration
impl TakeFrom<WireConfiguration> for Configuration
Source§fn take_from(from: &WireConfiguration) -> Self
fn take_from(from: &WireConfiguration) -> 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 Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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