[−][src]Enum dbus::arg::ArgType
Type of Argument
use this to figure out, e g, which type of argument is at the current position of Iter.
Variants
Dicts are Arrays of dict entries, so Dict types will have Array as ArgType.
Variant
bool
Invalid arg type - this is also the ArgType returned when there are no more arguments available.
String
Dict entry; you'll usually not encounter this one as dicts are arrays of dict entries.
u8
i16
u16
i32
u32
i64
u64
f64
OwnedFd
Use tuples or Vec<Box
Path
Signature
Implementations
impl ArgType
[src]
pub fn as_str(self) -> &'static str
[src]
A str corresponding to the name of a Rust type.
pub fn all() -> Vec<Self>
[src]
Returns a Vec of all possible argtypes.
pub fn from_i32(i: i32) -> Result<ArgType, String>
[src]
Converts an i32 to an ArgType (or an error).
Trait Implementations
impl Clone for ArgType
[src]
impl Copy for ArgType
[src]
impl Debug for ArgType
[src]
impl Eq for ArgType
[src]
impl Hash for ArgType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ArgType
[src]
fn cmp(&self, other: &ArgType) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ArgType> for ArgType
[src]
impl PartialOrd<ArgType> for ArgType
[src]
fn partial_cmp(&self, other: &ArgType) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ArgType
[src]
impl StructuralPartialEq for ArgType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnwindSafe for ArgType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,