#[repr(u16)]pub enum MessageKind {
Show 19 variants
SendComposeRequest = 1,
SendAcknowledgeRequest = 2,
HeartbeatRequest = 3,
CompatibilityPreflightRequest = 9,
ListRequest = 4,
PeekRequest = 5,
ReceiveRequest = 6,
ClearRequest = 7,
DoctorRequest = 8,
SendSentResponse = 4_097,
SendAcknowledgedResponse = 4_098,
HeartbeatResponse = 4_099,
CompatibilityVerdictResponse = 4_105,
ListResponse = 4_100,
PeekResponse = 4_101,
ReceiveResponse = 4_102,
ClearResponse = 4_103,
DoctorResponse = 4_104,
ErrorResponse = 8_191,
}Variants§
SendComposeRequest = 1
SendAcknowledgeRequest = 2
HeartbeatRequest = 3
CompatibilityPreflightRequest = 9
ListRequest = 4
PeekRequest = 5
ReceiveRequest = 6
ClearRequest = 7
DoctorRequest = 8
SendSentResponse = 4_097
SendAcknowledgedResponse = 4_098
HeartbeatResponse = 4_099
CompatibilityVerdictResponse = 4_105
ListResponse = 4_100
PeekResponse = 4_101
ReceiveResponse = 4_102
ClearResponse = 4_103
DoctorResponse = 4_104
ErrorResponse = 8_191
Implementations§
Source§impl MessageKind
impl MessageKind
pub const fn code(self) -> u16
pub const fn is_request(self) -> bool
pub const fn is_response(self) -> bool
Trait Implementations§
Source§impl Clone for MessageKind
impl Clone for MessageKind
Source§fn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
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 moreimpl Copy for MessageKind
Source§impl Debug for MessageKind
impl Debug for MessageKind
impl Eq for MessageKind
Source§impl PartialEq for MessageKind
impl PartialEq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnsafeUnpin for MessageKind
impl UnwindSafe for MessageKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.