pub enum ConfigSingleValue {
Bool(bool),
Uint8(u8),
Uint16(u16),
Uint32(u32),
Uint64(u64),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
String(String),
UnknownOrdinal_(u64),
}
Expand description
A single configuration value.
Variants§
Bool(bool)
Uint8(u8)
Uint16(u16)
Uint32(u32)
Uint64(u64)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
String(String)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl Clone for ConfigSingleValue
impl Clone for ConfigSingleValue
Source§fn clone(&self) -> ConfigSingleValue
fn clone(&self) -> ConfigSingleValue
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 ConfigSingleValue
impl Debug for ConfigSingleValue
Source§impl Encodable for ConfigSingleValue
impl Encodable for ConfigSingleValue
Source§type Encoded = WireConfigSingleValue
type Encoded = WireConfigSingleValue
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<ConfigSingleValue>
impl EncodableOption for Box<ConfigSingleValue>
Source§type EncodedOption = WireOptionalConfigSingleValue
type EncodedOption = WireOptionalConfigSingleValue
The wire type for the optional value.
Source§impl<___E> Encode<___E> for ConfigSingleValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for ConfigSingleValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<ConfigSingleValue>where
___E: ?Sized,
ConfigSingleValue: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<ConfigSingleValue>where
___E: ?Sized,
ConfigSingleValue: 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<WireConfigSingleValue> for ConfigSingleValue
impl TakeFrom<WireConfigSingleValue> for ConfigSingleValue
Source§fn take_from(from: &WireConfigSingleValue) -> Self
fn take_from(from: &WireConfigSingleValue) -> 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 ConfigSingleValue
impl RefUnwindSafe for ConfigSingleValue
impl Send for ConfigSingleValue
impl Sync for ConfigSingleValue
impl Unpin for ConfigSingleValue
impl UnwindSafe for ConfigSingleValue
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