pub enum ConfigValue {
Single(ConfigSingleValue),
Vector(ConfigVectorValue),
UnknownOrdinal_(u64),
}
Expand description
A configuration value which can be provided to a component.
Used both for storing configuration at-rest and in runtime configuration APIs.
Variants§
Trait Implementations§
Source§impl Clone for ConfigValue
impl Clone for ConfigValue
Source§fn clone(&self) -> ConfigValue
fn clone(&self) -> ConfigValue
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 ConfigValue
impl Debug for ConfigValue
Source§impl Encodable for ConfigValue
impl Encodable for ConfigValue
Source§type Encoded = WireConfigValue
type Encoded = WireConfigValue
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 EncodableOption for Box<ConfigValue>
impl EncodableOption for Box<ConfigValue>
Source§type EncodedOption = WireOptionalConfigValue
type EncodedOption = WireOptionalConfigValue
The wire type for the optional value.
Source§impl<___E> Encode<___E> for ConfigValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for ConfigValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<ConfigValue>where
___E: ?Sized,
ConfigValue: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<ConfigValue>where
___E: ?Sized,
ConfigValue: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireConfigValue> for ConfigValue
impl TakeFrom<WireConfigValue> for ConfigValue
Source§fn take_from(from: &WireConfigValue) -> Self
fn take_from(from: &WireConfigValue) -> 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 ConfigValue
impl RefUnwindSafe for ConfigValue
impl Send for ConfigValue
impl Sync for ConfigValue
impl Unpin for ConfigValue
impl UnwindSafe for ConfigValue
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