From 61518580ed60bb16edcd4fb7200d0b564b5ee9e9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 20 Oct 2018 21:46:17 +0300 Subject: introduce cancelable --- crates/ra_analysis/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/ra_analysis') diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 46cc0722b..b1d5c4936 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs @@ -37,6 +37,11 @@ pub use ra_editor::{ RunnableKind, StructureNode, }; +#[derive(Clone, Copy, Debug)] +pub struct Cancel; + +pub type Cancelable = Result; + #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct FileId(pub u32); -- cgit v1.2.3