Struct async_rustbus::rustbus_core::message_builder::DynamicHeader [−][src]
pub struct DynamicHeader { pub interface: Option<String>, pub member: Option<String>, pub object: Option<String>, pub destination: Option<String>, pub serial: Option<NonZeroU32>, pub sender: Option<String>, pub signature: Option<String>, pub error_name: Option<String>, pub response_serial: Option<NonZeroU32>, pub num_fds: Option<u32>, }
The dynamic part of a dbus message header
Fields
interface: Option<String>
member: Option<String>
object: Option<String>
destination: Option<String>
serial: Option<NonZeroU32>
sender: Option<String>
signature: Option<String>
error_name: Option<String>
response_serial: Option<NonZeroU32>
num_fds: Option<u32>
Implementations
impl DynamicHeader
[src]
impl DynamicHeader
[src]pub fn make_error_response<S: Into<String>>(
&self,
error_name: S,
error_msg: Option<String>
) -> MarshalledMessage
[src]
&self,
error_name: S,
error_msg: Option<String>
) -> MarshalledMessage
Make a correctly addressed error response with the correct response serial
pub fn make_response(&self) -> MarshalledMessage
[src]
Make a correctly addressed response with the correct response serial
pub fn validate(&self) -> bool
[src]
Trait Implementations
impl Clone for DynamicHeader
[src]
impl Clone for DynamicHeader
[src]fn clone(&self) -> DynamicHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DynamicHeader
[src]
impl Default for DynamicHeader
[src]fn default() -> DynamicHeader
[src]
impl Signature for DynamicHeader
[src]
impl Signature for DynamicHeader
[src]impl<'buf, 'fds> Unmarshal<'buf, 'fds> for DynamicHeader
[src]
impl<'buf, 'fds> Unmarshal<'buf, 'fds> for DynamicHeader
[src]