Struct async_rustbus::rustbus_core::message_builder::DynamicHeader
source · 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>,
}
Expand description
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§
source§impl DynamicHeader
impl DynamicHeader
sourcepub fn make_error_response<S: Into<String>>(
&self,
error_name: S,
error_msg: Option<String>
) -> MarshalledMessage
pub fn make_error_response<S: Into<String>>( &self, error_name: S, error_msg: Option<String> ) -> MarshalledMessage
Make a correctly addressed error response with the correct response serial
sourcepub fn make_response(&self) -> MarshalledMessage
pub fn make_response(&self) -> MarshalledMessage
Make a correctly addressed response with the correct response serial
pub fn validate(&self) -> bool
Trait Implementations§
source§impl Clone for DynamicHeader
impl Clone for DynamicHeader
source§fn clone(&self) -> DynamicHeader
fn clone(&self) -> DynamicHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DynamicHeader
impl Debug for DynamicHeader
source§impl Default for DynamicHeader
impl Default for DynamicHeader
source§fn default() -> DynamicHeader
fn default() -> DynamicHeader
Returns the “default value” for a type. Read more
source§impl Signature for DynamicHeader
impl Signature for DynamicHeader
fn signature() -> Type
fn alignment() -> usize
source§unsafe fn valid_slice(_bo: ByteOrder) -> bool
unsafe fn valid_slice(_bo: ByteOrder) -> bool
If this returns
true
,
it indicates that for implementing type T
,
Rust’s [T]
is identical to DBus’s array format
and can be copied into a message after aligning the first element. Read moresource§fn sig_str(s_buf: &mut SignatureBuffer)
fn sig_str(s_buf: &mut SignatureBuffer)
Appends the signature of the type to the
SignatureBuffer
. Read moresource§impl<'buf, 'fds> Unmarshal<'buf, 'fds> for DynamicHeader
impl<'buf, 'fds> Unmarshal<'buf, 'fds> for DynamicHeader
fn unmarshal(ctx: &mut UnmarshalContext<'fds, 'buf>) -> UnmarshalResult<Self>
Auto Trait Implementations§
impl RefUnwindSafe for DynamicHeader
impl Send for DynamicHeader
impl Sync for DynamicHeader
impl Unpin for DynamicHeader
impl UnwindSafe for DynamicHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more