Enum rd_util::systemd::PropVariant
source · pub enum PropVariant {
Bool(bool),
U32(u32),
U64(u64),
String(String),
StringList(Vec<String>),
ExecStart(Vec<(String, Vec<String>, bool)>),
Catchall(Type),
}
Variants§
Bool(bool)
U32(u32)
U64(u64)
String(String)
StringList(Vec<String>)
ExecStart(Vec<(String, Vec<String>, bool)>)
Catchall(Type)
Trait Implementations§
source§impl Debug for PropVariant
impl Debug for PropVariant
source§impl Marshal for PropVariant
impl Marshal for PropVariant
fn marshal(&self, ctx: &mut MarshalContext<'_, '_>) -> Result<(), Error>
fn marshal_as_variant( &self, ctx: &mut MarshalContext<'_, '_> ) -> Result<(), Error>
source§impl PartialEq for PropVariant
impl PartialEq for PropVariant
source§fn eq(&self, other: &PropVariant) -> bool
fn eq(&self, other: &PropVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Signature for PropVariant
impl Signature for PropVariant
fn signature() -> Type
fn alignment() -> usize
source§fn sig_str(s_buf: &mut SignatureBuffer)
fn sig_str(s_buf: &mut SignatureBuffer)
Appends the signature of the type to the
SignatureBuffer
. Read moresource§impl<'buf, 'fds> Unmarshal<'buf, 'fds> for PropVariant
impl<'buf, 'fds> Unmarshal<'buf, 'fds> for PropVariant
fn unmarshal(ctx: &mut UnmarshalContext<'fds, 'buf>) -> UnmarshalResult<Self>
impl Eq for PropVariant
impl StructuralPartialEq for PropVariant
Auto Trait Implementations§
impl Freeze for PropVariant
impl RefUnwindSafe for PropVariant
impl Send for PropVariant
impl Sync for PropVariant
impl Unpin for PropVariant
impl UnwindSafe for PropVariant
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