[−][src]Struct dbus_message_parser::Encoder
Implementations
impl<'a> Encoder<'a>
[src]
impl<'a> Encoder<'a>
[src]
pub fn message_header(
&mut self,
message_header: &MessageHeader,
body: Option<(u32, String)>
) -> EncodeResult
[src]
&mut self,
message_header: &MessageHeader,
body: Option<(u32, String)>
) -> EncodeResult
impl<'a> Encoder<'a>
[src]
pub fn message(&mut self, message: &Message) -> EncodeResult
[src]
Encode a Message
object to a byte array.
impl<'a> Encoder<'a>
[src]
pub fn byte(&mut self, b: u8)
[src]
Encode a u8
into the buffer.
pub fn boolean(&mut self, b: bool, is_le: bool)
[src]
Encode a bool
into the buffer.
pub fn int_16(&mut self, i: i16, is_le: bool)
[src]
Encode a i16
into the buffer.
pub fn uint_16(&mut self, u: u16, is_le: bool)
[src]
Encode a u16
into the buffer.
pub fn int_32(&mut self, i: i32, is_le: bool)
[src]
Encode a i32
into the buffer.
pub fn uint_32(&mut self, u: u32, is_le: bool)
[src]
Encode a u32
into the buffer.
pub fn unix_fd(&mut self, fd: RawFd, is_len: bool)
[src]
pub fn int_64(&mut self, i: i64, is_le: bool)
[src]
Encode a i64
into the buffer.
pub fn uint_64(&mut self, u: u64, is_le: bool)
[src]
Encode a u64
into the buffer.
pub fn double(&mut self, f: f64, is_le: bool)
[src]
Encode a f64
into the buffer.
pub fn string(&mut self, s: &str, is_le: bool)
[src]
Encode a &str
into the buffer and use 4 bytes.
pub fn path(&mut self, s: &str, is_le: bool) -> EncodeResult
[src]
pub fn signature(&mut self, s: &str) -> EncodeResult
[src]
Encode a &str
into the buffer and use 1 bytes.
impl<'a> Encoder<'a>
[src]
pub fn array(
&mut self,
vec: &Vec<Value>,
sig: &str,
is_le: bool
) -> EncodeResult
[src]
&mut self,
vec: &Vec<Value>,
sig: &str,
is_le: bool
) -> EncodeResult
Encode a &Vec<Value>
as an array into the buffer.
pub fn encode_struct(&mut self, values: &[Value], is_le: bool) -> EncodeResult
[src]
Encode a &[Value]
as a struct into the buffer.
pub fn dict_entry(&mut self, b: &(Value, Value), is_le: bool) -> EncodeResult
[src]
Encode a &(Value, Value)
as a dict entry into the buffer.
pub fn variant(&mut self, values: &[Value], is_le: bool) -> EncodeResult
[src]
Encode a &[Value]
as a variant into the buffer.
impl<'a> Encoder<'a>
[src]
pub fn value(&mut self, value: &Value, is_le: bool) -> EncodeResult
[src]
Encode a Value
object to a byte array.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Encoder<'a>
impl<'a> Send for Encoder<'a>
impl<'a> Sync for Encoder<'a>
impl<'a> Unpin for Encoder<'a>
impl<'a> !UnwindSafe for Encoder<'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, 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>,