pub enum DidOpenTextDocumentNotification {}Expand description
The document open notification is sent from the client to the server to signal newly opened text documents. The document’s truth is now managed by the client and the server must not try to read the document’s truth using the document’s uri. Open in this sense means it is managed by the client. It doesn’t necessarily mean that its content is presented in an editor. An open notification must not be sent more than once without a corresponding close notification send before. This means open and close notification must be balanced and the max open count is one.
Trait Implementations§
Source§impl Notification for DidOpenTextDocumentNotification
impl Notification for DidOpenTextDocumentNotification
const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentDidOpen
const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer
type Params = DidOpenTextDocumentParams
Auto Trait Implementations§
impl Freeze for DidOpenTextDocumentNotification
impl RefUnwindSafe for DidOpenTextDocumentNotification
impl Send for DidOpenTextDocumentNotification
impl Sync for DidOpenTextDocumentNotification
impl Unpin for DidOpenTextDocumentNotification
impl UnsafeUnpin for DidOpenTextDocumentNotification
impl UnwindSafe for DidOpenTextDocumentNotification
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