pub enum BasicValue {
Byte(u8),
Boolean(bool),
Int16(i16),
Uint16(u16),
Int32(i32),
Uint32(u32),
Int64(i64),
Uint64(u64),
String(String),
ObjectPath(Path),
Signature(Signature),
}Expand description
BasicValue covers the “basic” D-Bus types, that is those that are allowed to be used as keys in a dictionary.
Variants§
Byte(u8)
Boolean(bool)
Int16(i16)
Uint16(u16)
Int32(i32)
Uint32(u32)
Int64(i64)
Uint64(u64)
String(String)
ObjectPath(Path)
Signature(Signature)
Implementations§
Source§impl BasicValue
impl BasicValue
Sourcepub fn get_signature(&self) -> &str
pub fn get_signature(&self) -> &str
Returns the D-Bus type signature that corresponds to the Value
Trait Implementations§
Source§impl Clone for BasicValue
impl Clone for BasicValue
Source§fn clone(&self) -> BasicValue
fn clone(&self) -> BasicValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BasicValue
impl Debug for BasicValue
impl Eq for BasicValue
Source§impl Hash for BasicValue
impl Hash for BasicValue
Source§impl PartialEq for BasicValue
impl PartialEq for BasicValue
Source§fn eq(&self, other: &BasicValue) -> bool
fn eq(&self, other: &BasicValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasicValue
Auto Trait Implementations§
impl Freeze for BasicValue
impl RefUnwindSafe for BasicValue
impl Send for BasicValue
impl Sync for BasicValue
impl Unpin for BasicValue
impl UnsafeUnpin for BasicValue
impl UnwindSafe for BasicValue
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