Struct rune_languageserver::State[][src]

pub struct State { /* fields omitted */ }

Shared server state.

Implementations

impl State[src]

pub fn new(rebuild_tx: Sender<()>, context: Context, options: Options) -> Self[src]

Construct a new state.

pub fn initialize(&self)[src]

Mark server as initialized.

pub fn is_initialized(&self) -> bool[src]

Test if server is initialized.

pub async fn sources_mut(&self) -> RwLockWriteGuard<'_, Sources>[src]

Access sources in the current state.

pub async fn rebuild_interest(&self) -> Result<()>[src]

Indicate interest in having the project rebuild.

Sources that have been modified will be marked as dirty.

pub async fn goto_definition(
    &self,
    uri: &Url,
    position: Position
) -> Option<Location>
[src]

Find definition at the given uri and LSP position.

pub async fn rebuild(&self, output: &Output) -> Result<()>[src]

Rebuild the current project.

Trait Implementations

impl Clone for State[src]

Auto Trait Implementations

impl !RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl !UnwindSafe for State

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any