[−][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
Array
Dicts are Arrays of dict entries, so Dict types will have Array as ArgType.
Variant
Variant
Boolean
bool
Invalid
Invalid arg type - this is also the ArgType returned when there are no more arguments available.
String
String
DictEntry
Dict entry; you'll usually not encounter this one as dicts are arrays of dict entries.
Byte
u8
Int16
i16
UInt16
u16
Int32
i32
UInt32
u32
Int64
i64
UInt64
u64
Double
f64
UnixFd
OwnedFd
Struct
Use tuples or Vec<Box
ObjectPath
Path
Signature
Signature
Methods
impl ArgType
[src]
pub fn as_str(self) -> &'static str
[src]
A str corresponding to the name of a Rust type.
pub fn from_i32(i: i32) -> Result<ArgType, String>
[src]
Converts an i32 to an ArgType (or an error).
Trait Implementations
impl PartialEq<ArgType> for ArgType
[src]
fn eq(&self, other: &ArgType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for ArgType
[src]
fn clone(&self) -> ArgType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for ArgType
[src]
impl Ord for ArgType
[src]
fn cmp(&self, other: &ArgType) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Copy for ArgType
[src]
impl Debug for ArgType
[src]
impl Hash for ArgType
[src]
Auto Trait Implementations
impl Unpin for ArgType
impl Sync for ArgType
impl Send for ArgType
impl RefUnwindSafe for ArgType
impl UnwindSafe for ArgType
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,