pub enum CompletionSourceKind {
Sync(Arc<dyn SyncCompletionSource>),
Async(Arc<dyn AsyncCompletionSource>),
}Expand description
Discriminator for CompletionSourceContribution::kind. The
aggregator dispatches on this: Sync sources are called
inline during refilter; Async sources are spawned at popup-
open + on isIncomplete refresh, with the host running the
returned future on its executor.
Variants§
Sync(Arc<dyn SyncCompletionSource>)
Async(Arc<dyn AsyncCompletionSource>)
Implementations§
Source§impl CompletionSourceKind
impl CompletionSourceKind
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
Short human-readable tag for debug / :describe-mode
output ("sync" or "async").
Trait Implementations§
Source§impl Clone for CompletionSourceKind
impl Clone for CompletionSourceKind
Source§fn clone(&self) -> CompletionSourceKind
fn clone(&self) -> CompletionSourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CompletionSourceKind
impl !UnwindSafe for CompletionSourceKind
impl Freeze for CompletionSourceKind
impl Send for CompletionSourceKind
impl Sync for CompletionSourceKind
impl Unpin for CompletionSourceKind
impl UnsafeUnpin for CompletionSourceKind
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