[−][src]Struct rustbus::message::Message
A message with all the different fields it may or may not have
Fields
typ: MessageType
flags: u8
interface: Option<String>
member: Option<String>
object: Option<String>
destination: Option<String>
serial: Option<u32>
sender: Option<String>
error_name: Option<String>
response_serial: Option<u32>
num_fds: Option<u32>
params: Vec<Param<'a, 'e>>
raw_fds: Vec<RawFd>
Implementations
impl<'a, 'e> Message<'a, 'e>
[src]
pub fn new() -> Message<'a, 'e>
[src]
Create a new empty message
pub fn set_interface(&mut self, interface: String)
[src]
pub fn set_member(&mut self, member: String)
[src]
pub fn set_object(&mut self, object: String)
[src]
pub fn set_destination(&mut self, dest: String)
[src]
pub fn push_params<P: Into<Param<'a, 'e>>>(&mut self, params: Vec<P>)
[src]
pub fn push_param<P: Into<Param<'a, 'e>>>(&mut self, param: P)
[src]
pub fn make_response(&self) -> OutMessage
[src]
Make a correctly addressed response with the correct response serial
pub fn make_error_response(
&self,
error_name: String,
error_msg: Option<String>
) -> OutMessage
[src]
&self,
error_name: String,
error_msg: Option<String>
) -> OutMessage
Make a correctly addressed error response with the correct response serial
pub fn set_flag(&mut self, flag: HeaderFlags)
[src]
pub fn unset_flag(&mut self, flag: HeaderFlags)
[src]
pub fn toggle_flag(&mut self, flag: HeaderFlags)
[src]
pub fn sig(&self) -> Vec<Type>
[src]
pub fn add_param<P: Into<Param<'a, 'e>>>(&mut self, p: P)
[src]
pub fn add_param2<P1: Into<Param<'a, 'e>>, P2: Into<Param<'a, 'e>>>(
&mut self,
p1: P1,
p2: P2
)
[src]
&mut self,
p1: P1,
p2: P2
)
pub fn add_param3<P1: Into<Param<'a, 'e>>, P2: Into<Param<'a, 'e>>, P3: Into<Param<'a, 'e>>>(
&mut self,
p1: P1,
p2: P2,
p3: P3
)
[src]
&mut self,
p1: P1,
p2: P2,
p3: P3
)
Trait Implementations
impl<'a, 'e> Clone for Message<'a, 'e>
[src]
impl<'a, 'e> Debug for Message<'a, 'e>
[src]
impl<'a, 'e> Default for Message<'a, 'e>
[src]
Auto Trait Implementations
impl<'a, 'e> RefUnwindSafe for Message<'a, 'e>
impl<'a, 'e> Send for Message<'a, 'e>
impl<'a, 'e> Sync for Message<'a, 'e>
impl<'a, 'e> Unpin for Message<'a, 'e> where
'a: 'e,
'e: 'a,
'a: 'e,
'e: 'a,
impl<'a, 'e> UnwindSafe for Message<'a, 'e>
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>,