pub enum LspNotificationMethod<'a> {
Show 27 variants
WorkspaceDidChangeWorkspaceFolders,
WindowWorkDoneProgressCancel,
WorkspaceDidCreateFiles,
WorkspaceDidRenameFiles,
WorkspaceDidDeleteFiles,
NotebookDocumentDidOpen,
NotebookDocumentDidChange,
NotebookDocumentDidSave,
NotebookDocumentDidClose,
Initialized,
Exit,
WorkspaceDidChangeConfiguration,
WindowShowMessage,
WindowLogMessage,
TelemetryEvent,
TextDocumentDidOpen,
TextDocumentDidChange,
TextDocumentDidClose,
TextDocumentDidSave,
TextDocumentWillSave,
WorkspaceDidChangeWatchedFiles,
TextDocumentPublishDiagnostics,
SetTrace,
LogTrace,
CancelRequest,
Progress,
Custom(&'a str),
}Variants§
WorkspaceDidChangeWorkspaceFolders
WindowWorkDoneProgressCancel
WorkspaceDidCreateFiles
WorkspaceDidRenameFiles
WorkspaceDidDeleteFiles
NotebookDocumentDidOpen
NotebookDocumentDidChange
NotebookDocumentDidSave
NotebookDocumentDidClose
Initialized
Exit
WorkspaceDidChangeConfiguration
WindowShowMessage
WindowLogMessage
TelemetryEvent
TextDocumentDidOpen
TextDocumentDidChange
TextDocumentDidClose
TextDocumentDidSave
TextDocumentWillSave
WorkspaceDidChangeWatchedFiles
TextDocumentPublishDiagnostics
SetTrace
LogTrace
CancelRequest
Progress
Custom(&'a str)
Implementations§
Source§impl<'a> LspNotificationMethod<'a>
impl<'a> LspNotificationMethod<'a>
pub const fn as_str(&self) -> &'a str
Sourcepub const fn new(value: &'a str) -> Self
pub const fn new(value: &'a str) -> Self
Creates a new LspNotificationMethod. The created variant will always be LspNotificationMethod::Custom.
Trait Implementations§
Source§impl<'a> Clone for LspNotificationMethod<'a>
impl<'a> Clone for LspNotificationMethod<'a>
Source§fn clone(&self) -> LspNotificationMethod<'a>
fn clone(&self) -> LspNotificationMethod<'a>
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 moreSource§impl<'a> Debug for LspNotificationMethod<'a>
impl<'a> Debug for LspNotificationMethod<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for LspNotificationMethod<'a>
impl<'de: 'a, 'a> Deserialize<'de> for LspNotificationMethod<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LspNotificationMethod<'_>
impl Display for LspNotificationMethod<'_>
Source§impl<'a> From<&'a str> for LspNotificationMethod<'a>
impl<'a> From<&'a str> for LspNotificationMethod<'a>
Source§fn from(value: &'a str) -> Self
fn from(value: &'a str) -> Self
Creates a new LspNotificationMethod from a &str. The created variant will be
LspNotificationMethod::Custom if and only if the &str does not match an
existing LspNotificationMethod.
Source§impl<'a> From<LspNotificationMethod<'a>> for String
impl<'a> From<LspNotificationMethod<'a>> for String
Source§fn from(value: LspNotificationMethod<'a>) -> Self
fn from(value: LspNotificationMethod<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for LspNotificationMethod<'a>
impl<'a> Hash for LspNotificationMethod<'a>
Source§impl<'a> PartialEq for LspNotificationMethod<'a>
impl<'a> PartialEq for LspNotificationMethod<'a>
Source§fn eq(&self, other: &LspNotificationMethod<'a>) -> bool
fn eq(&self, other: &LspNotificationMethod<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for LspNotificationMethod<'a>
impl<'a> Serialize for LspNotificationMethod<'a>
impl<'a> Copy for LspNotificationMethod<'a>
impl<'a> Eq for LspNotificationMethod<'a>
impl<'a> StructuralPartialEq for LspNotificationMethod<'a>
Auto Trait Implementations§
impl<'a> Freeze for LspNotificationMethod<'a>
impl<'a> RefUnwindSafe for LspNotificationMethod<'a>
impl<'a> Send for LspNotificationMethod<'a>
impl<'a> Sync for LspNotificationMethod<'a>
impl<'a> Unpin for LspNotificationMethod<'a>
impl<'a> UnsafeUnpin for LspNotificationMethod<'a>
impl<'a> UnwindSafe for LspNotificationMethod<'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