#[non_exhaustive]#[repr(u8)]pub enum MessageType {
Ping = 1,
SearchQuery = 2,
SearchResult = 3,
AiToken = 4,
Cancel = 5,
AgentTaskStart = 16,
AgentTaskEvent = 17,
AgentTaskDone = 18,
}Expand description
Wire-level message type discriminant.
New types will be added as the protocol evolves; match arms should
always include a wildcard (_) or use TryFrom<u8> rather than
directly matching on the integer value.
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.
Ping = 1
SearchQuery = 2
SearchResult = 3
AiToken = 4
Cancel = 5
AgentTaskStart = 16
AgentTaskEvent = 17
AgentTaskDone = 18
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 (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 MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl PartialEq for MessageType
impl PartialEq 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 UnsafeUnpin 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