pub struct OpenRequest<'a> { /* private fields */ }Expand description
What DocumentTracker::ensure_open needs to bring one document to the
server’s side.
path was validated by roots; the file is opened and the opened handle
is verified against roots again, so a symlink swapped in after the
validation is refused (#783).
Implementations§
Source§impl<'a> OpenRequest<'a>
impl<'a> OpenRequest<'a>
Sourcepub const fn new(
path: &'a WorkspacePath,
roots: &'a WorkspaceRoots,
server: &'a ServerId,
client: &'a LspClient,
access: Access,
) -> Self
pub const fn new( path: &'a WorkspacePath, roots: &'a WorkspaceRoots, server: &'a ServerId, client: &'a LspClient, access: Access, ) -> Self
A request to open path, validated against roots, for server
over client; access says whether it touches the document’s LRU
position.
Trait Implementations§
Source§impl<'a> Clone for OpenRequest<'a>
impl<'a> Clone for OpenRequest<'a>
impl<'a> Copy for OpenRequest<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OpenRequest<'a>
impl<'a> !UnwindSafe for OpenRequest<'a>
impl<'a> Freeze for OpenRequest<'a>
impl<'a> Send for OpenRequest<'a>
impl<'a> Sync for OpenRequest<'a>
impl<'a> Unpin for OpenRequest<'a>
impl<'a> UnsafeUnpin for OpenRequest<'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