Struct ra_ap_flycheck::FlycheckHandle
source · pub struct FlycheckHandle { /* private fields */ }
Expand description
Flycheck wraps the shared state and communication machinery used for
running cargo check
(or other compatible command) and providing
diagnostics based on the output.
The spawned thread is shut down when this struct is dropped.
Implementations§
source§impl FlycheckHandle
impl FlycheckHandle
pub fn spawn( id: usize, sender: Box<dyn Fn(Message) + Send>, config: FlycheckConfig, sysroot_root: Option<AbsPathBuf>, workspace_root: AbsPathBuf, manifest_path: Option<AbsPathBuf> ) -> FlycheckHandle
sourcepub fn restart_workspace(&self, saved_file: Option<AbsPathBuf>)
pub fn restart_workspace(&self, saved_file: Option<AbsPathBuf>)
Schedule a re-start of the cargo check worker to do a workspace wide check.
sourcepub fn restart_for_package(&self, package: String)
pub fn restart_for_package(&self, package: String)
Schedule a re-start of the cargo check worker to do a package wide check.
pub fn id(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlycheckHandle
impl !RefUnwindSafe for FlycheckHandle
impl Send for FlycheckHandle
impl Sync for FlycheckHandle
impl Unpin for FlycheckHandle
impl !UnwindSafe for FlycheckHandle
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more