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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for DynamicHeader
impl RefUnwindSafe for DynamicHeader
impl Send for DynamicHeader
impl Sync for DynamicHeader
impl Unpin for DynamicHeader
impl UnsafeUnpin 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