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
sourceimpl Debug for PropVariant
impl Debug for PropVariant
sourceimpl 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>
sourceimpl PartialEq<PropVariant> for PropVariant
impl PartialEq<PropVariant> for PropVariant
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &PropVariant) -> bool
fn ne(&self, other: &PropVariant) -> bool
This method tests for !=.
sourceimpl Signature for PropVariant
impl Signature for PropVariant
fn signature() -> Type
fn alignment() -> usize
sourcefn sig_str(s_buf: &mut SignatureBuffer)
fn sig_str(s_buf: &mut SignatureBuffer)
Appends the signature of the type to the SignatureBuffer. Read more
sourcefn has_sig(sig: &str) -> bool
fn has_sig(sig: &str) -> bool
Check if this type fulfills this signature. This may expect to only be called with valid signatures. But it might be called with the wrong signature. This means for example you must check the length before indexing. Read more
sourceunsafe fn valid_slice(_bo: ByteOrder) -> bool
unsafe fn valid_slice(_bo: ByteOrder) -> bool
If this returns true,
it indicates that for implementing type T,
Rust’s [T] is identical to DBus’s array format
and can be copied into a message after aligning the first element. Read more
sourceimpl<'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 StructuralEq for PropVariant
impl StructuralPartialEq for PropVariant
Auto Trait Implementations
impl RefUnwindSafe for PropVariant
impl Send for PropVariant
impl Sync for PropVariant
impl Unpin for PropVariant
impl UnwindSafe for PropVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more