#[repr(u8)]pub enum MessageType {
MethodCall = 1,
MethodReturn = 2,
Error = 3,
Signal = 4,
}
Expand description
An enum representing the message type.
Variants§
MethodCall = 1
The message is a METHOD_CALL
.
MethodReturn = 2
The message is a METHOD_RETURN
.
Error = 3
The message is a ERROR
.
Signal = 4
The message is a SIGNAL
.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 Debug for MessageType
impl Debug for MessageType
Source§impl Display for MessageType
impl Display for MessageType
Source§impl Ord for MessageType
impl Ord for MessageType
Source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
Source§impl TryFrom<&str> for MessageType
impl TryFrom<&str> for MessageType
Source§type Error = MatchRuleError
type Error = MatchRuleError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for MessageType
impl TryFrom<u8> for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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