#[non_exhaustive]pub enum MessageType {
Error = 1,
Warning = 2,
Info = 3,
Log = 4,
}Expand description
How serious a message shown or logged by the client is
(MessageType in the protocol).
§Examples
use lsp_lang::MessageType;
assert_eq!(MessageType::Warning.as_u32(), 2);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.
Error = 1
Something failed (1).
Warning = 2
Something is probably wrong (2).
Info = 3
Information (3).
Log = 4
Trace output for the client’s log (4).
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
impl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
impl Eq for MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Forget for MessageType
impl Freeze for MessageType
impl Move 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