#[non_exhaustive]pub enum MessageKind<'a> {
MethodCall {
path: &'a ObjectPath,
member: &'a str,
},
MethodReturn {
reply_serial: NonZeroU32,
},
Error {
error_name: &'a str,
reply_serial: NonZeroU32,
},
Signal {
member: &'a str,
},
}
Expand description
The kind of a D-Bus message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MethodCall
Method call. This message type may prompt a reply.
MethodReturn
Method reply with returned data.
Fields
§
reply_serial: NonZeroU32
The serial this is a reply to.
Error
Error reply. If the first argument exists and is a string, it is an error message.
Fields
§
reply_serial: NonZeroU32
The serial this is a reply to.
Signal
Signal emission.
Trait Implementations§
Source§impl<'a> Clone for MessageKind<'a>
impl<'a> Clone for MessageKind<'a>
Source§fn clone(&self) -> MessageKind<'a>
fn clone(&self) -> MessageKind<'a>
Returns a duplicate 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<'a> Debug for MessageKind<'a>
impl<'a> Debug for MessageKind<'a>
Source§impl<'a> PartialEq for MessageKind<'a>
impl<'a> PartialEq for MessageKind<'a>
impl<'a> Copy for MessageKind<'a>
impl<'a> Eq for MessageKind<'a>
impl<'a> StructuralPartialEq for MessageKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageKind<'a>
impl<'a> RefUnwindSafe for MessageKind<'a>
impl<'a> Send for MessageKind<'a>
impl<'a> Sync for MessageKind<'a>
impl<'a> Unpin for MessageKind<'a>
impl<'a> UnwindSafe for MessageKind<'a>
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