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
impl Eq 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
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 moreimpl StructuralPartialEq for PropVariant
Source§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>
Auto Trait Implementations§
impl Freeze for PropVariant
impl RefUnwindSafe for PropVariant
impl Send for PropVariant
impl Sync for PropVariant
impl Unpin for PropVariant
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more