[−][src]Enum rustbus::Base
The base types a message can have as parameters
There are From
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]
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]
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<'a> Marshal for Base<'a>
[src]
fn marshal(&self, byteorder: ByteOrder, buf: &mut Vec<u8>) -> Result<(), Error>
[src]
fn signature(&self) -> Type
[src]
fn alignment(&self) -> usize
[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.
fn try_from(b: &Base) -> Result<bool, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for String
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<String, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for &'a str
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base<'a>) -> Result<&'a str, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for u8
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<u8, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for u16
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<u16, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for u32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<u32, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for u64
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<u64, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for i16
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<i16, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for i32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(b: &Base) -> Result<i32, Error>
[src]
impl<'a, '_> TryFrom<&'_ Base<'a>> for i64
[src]
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]
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>,