Enum tokio_dbus::MessageKind
source · #[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
Fields
§
reply_serial: NonZeroU32
The serial this is a reply to.
Method reply with returned data.
Error
Fields
§
reply_serial: NonZeroU32
The serial this is a reply to.
Error reply. If the first argument exists and is a string, it is an error message.
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 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<'a> Debug for MessageKind<'a>
impl<'a> Debug for MessageKind<'a>
source§impl<'a> PartialEq for MessageKind<'a>
impl<'a> PartialEq for MessageKind<'a>
source§fn eq(&self, other: &MessageKind<'a>) -> bool
fn eq(&self, other: &MessageKind<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for MessageKind<'a>
impl<'a> Eq for MessageKind<'a>
impl<'a> StructuralPartialEq for MessageKind<'a>
Auto Trait Implementations§
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