Struct rustbus::params::message::Message [−][src]
pub struct Message<'a, 'e> { pub typ: MessageType, pub flags: u8, pub dynheader: DynamicHeader, pub params: Vec<Param<'a, 'e>>, pub raw_fds: Vec<UnixFd>, }
A message with all the different fields it may or may not have and only Params as the body
Fields
typ: MessageType
flags: u8
dynheader: DynamicHeader
params: Vec<Param<'a, 'e>>
raw_fds: Vec<UnixFd>
Implementations
impl<'a, 'e> Message<'a, 'e>
[src]
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) -> MarshalledMessage
[src]
Make a correctly addressed response with the correct response serial
This is identical to calling self.dynheader.make_response()
.
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
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,