[][src]Enum rustbus::Base

pub enum Base<'a> {
    Double(u64),
    Byte(u8),
    Int16(i16),
    Uint16(u16),
    Int32(i32),
    Uint32(u32),
    UnixFd(u32),
    Int64(i64),
    Uint64(u64),
    String(String),
    Signature(String),
    ObjectPath(String),
    Boolean(bool),
    DoubleRef(&'a u64),
    ByteRef(&'a u8),
    Int16Ref(&'a i16),
    Uint16Ref(&'a u16),
    Int32Ref(&'a i32),
    Uint32Ref(&'a u32),
    UnixFdRef(&'a u32),
    Int64Ref(&'a i64),
    Uint64Ref(&'a u64),
    StringRef(&'a str),
    SignatureRef(&'a str),
    ObjectPathRef(&'a str),
    BooleanRef(&'a bool),
}

The base types a message can have as parameters There are From impls for most of them

Variants

Double(u64)
Byte(u8)
Int16(i16)
Uint16(u16)
Int32(i32)
Uint32(u32)
UnixFd(u32)
Int64(i64)
Uint64(u64)
String(String)
Signature(String)
ObjectPath(String)
Boolean(bool)
DoubleRef(&'a u64)
ByteRef(&'a u8)
Int16Ref(&'a i16)
Uint16Ref(&'a u16)
Int32Ref(&'a i32)
Uint32Ref(&'a u32)
UnixFdRef(&'a u32)
Int64Ref(&'a i64)
Uint64Ref(&'a u64)
StringRef(&'a str)
SignatureRef(&'a str)
ObjectPathRef(&'a str)
BooleanRef(&'a bool)

Implementations

impl<'a> Base<'a>[src]

pub fn as_str(&'a self) -> Option<&'a str>[src]

pub fn as_u64(&'a self) -> Option<&'a u64>[src]

pub fn as_u32(&'a self) -> Option<&'a u32>[src]

pub fn as_u16(&'a self) -> Option<&'a u16>[src]

pub fn as_i64(&'a self) -> Option<&'a i64>[src]

pub fn as_i32(&'a self) -> Option<&'a i32>[src]

pub fn as_i16(&'a self) -> Option<&'a i16>[src]

pub fn as_byte(&'a self) -> Option<&'a u8>[src]

pub fn as_bool(&'a self) -> Option<&'a bool>[src]

pub fn as_unix_fd_idx(&'a self) -> Option<&'a u32>[src]

pub fn into_string(self) -> Result<String, Self>[src]

pub fn into_str(self) -> Result<&'a str, Self>[src]

pub fn into_u64(self) -> Result<u64, Self>[src]

pub fn into_u32(self) -> Result<u32, Self>[src]

pub fn into_u16(self) -> Result<u16, Self>[src]

pub fn into_i64(self) -> Result<i64, Self>[src]

pub fn into_i32(self) -> Result<i32, Self>[src]

pub fn into_i16(self) -> Result<i16, Self>[src]

pub fn into_byte(self) -> Result<u8, Self>[src]

pub fn into_bool(self) -> Result<bool, Self>[src]

impl<'a> Base<'a>[src]

pub fn make_signature(&self, buf: &mut String)[src]

pub fn sig(&self) -> Type[src]

Trait Implementations

impl<'a> Clone for Base<'a>[src]

impl<'a> Debug for Base<'a>[src]

impl<'a> Eq for Base<'a>[src]

impl<'a, '_> From<&'_ Base<'a>> for Base[src]

impl<'a> From<&'a bool> for Base<'a>[src]

impl<'a> From<&'a i16> for Base<'a>[src]

impl<'a> From<&'a i32> for Base<'a>[src]

impl<'a> From<&'a i64> for Base<'a>[src]

impl<'a> From<&'a str> for Base<'a>[src]

impl<'a> From<&'a u16> for Base<'a>[src]

impl<'a> From<&'a u32> for Base<'a>[src]

impl<'a> From<&'a u64> for Base<'a>[src]

impl<'a> From<&'a u8> for Base<'a>[src]

impl<'a> From<String> for Base<'a>[src]

impl<'a> From<bool> for Base<'a>[src]

impl<'a> From<i16> for Base<'a>[src]

impl<'a> From<i32> for Base<'a>[src]

impl<'a> From<i64> for Base<'a>[src]

impl<'a> From<u16> for Base<'a>[src]

impl<'a> From<u32> for Base<'a>[src]

impl<'a> From<u64> for Base<'a>[src]

impl<'a> From<u8> for Base<'a>[src]

impl<'a> Hash for Base<'a>[src]

impl<'a> Marshal for Base<'a>[src]

impl<'a> PartialEq<Base<'a>> for Base<'a>[src]

impl<'a> StructuralEq for Base<'a>[src]

impl<'a> StructuralPartialEq for Base<'a>[src]

impl<'a, '_> TryFrom<&'_ Base<'a>> for bool[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for String[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for &'a str[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a, '_> TryFrom<&'_ Base<'a>> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Base<'a>

impl<'a> Send for Base<'a>

impl<'a> Sync for Base<'a>

impl<'a> Unpin for Base<'a>

impl<'a> UnwindSafe for Base<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.