pub struct CompletionManager<'a> { /* private fields */ }Implementations§
Source§impl<'a> CompletionManager<'a>
impl<'a> CompletionManager<'a>
pub fn new(paths: &'a UpstreamPaths) -> Self
pub fn installed_shells() -> Vec<CompletionShell>
pub fn installed_shell_completion_dirs(&self) -> Vec<(&'static str, PathBuf)>
pub async fn install_from_release_assets<H>( &self, package_name: &str, release: &Release, provider_manager: &ProviderManager, provider: &Provider, cache_dir: &Path, message_callback: &mut Option<H>, ) -> Result<usize>
pub fn install_from_root<H>( &self, package_name: &str, root: &Path, message_callback: &mut Option<H>, ) -> Result<usize>
pub fn cached_completion_mismatches( &self, package_name: &str, ) -> Result<Vec<CompletionCacheMismatch>>
pub fn copy_cached_completions_to_shells<H>( &self, package_name: &str, message_callback: &mut Option<H>, ) -> Result<usize>
pub fn remove_for_package<H>( &self, package_name: &str, message_callback: &mut Option<H>, ) -> Result<usize>
Auto Trait Implementations§
impl<'a> Freeze for CompletionManager<'a>
impl<'a> RefUnwindSafe for CompletionManager<'a>
impl<'a> Send for CompletionManager<'a>
impl<'a> Sync for CompletionManager<'a>
impl<'a> Unpin for CompletionManager<'a>
impl<'a> UnsafeUnpin for CompletionManager<'a>
impl<'a> UnwindSafe for CompletionManager<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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