pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn new( client_capabilities: &ClientCapabilities, position_encoding: PositionEncoding, global: GlobalClientSettings, workspaces: &Workspaces, client: &Client, ) -> Result<Self>
pub fn key_from_url(&self, url: Url) -> DocumentKey
pub fn take_snapshot(&self, url: Url) -> Option<DocumentSnapshot>
pub fn open_text_document(&mut self, url: Url, document: TextDocument)
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl !Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl !UnwindSafe for Session
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