pub struct ExtensionIndexStore { /* private fields */ }Implementations§
Source§impl ExtensionIndexStore
impl ExtensionIndexStore
pub const fn new(path: PathBuf) -> Self
pub fn default_path() -> PathBuf
pub fn default_store() -> Self
pub fn path(&self) -> &Path
pub fn load(&self) -> Result<Option<ExtensionIndex>>
pub fn load_or_seed(&self) -> Result<ExtensionIndex>
pub fn save(&self, index: &ExtensionIndex) -> Result<()>
pub fn resolve_install_source(&self, query: &str) -> Result<Option<String>>
pub async fn load_or_refresh_best_effort( &self, client: &Client, max_age: Duration, ) -> Result<ExtensionIndex>
pub async fn refresh_best_effort( &self, client: &Client, ) -> Result<(ExtensionIndex, ExtensionIndexRefreshStats)>
Trait Implementations§
Source§impl Clone for ExtensionIndexStore
impl Clone for ExtensionIndexStore
Source§fn clone(&self) -> ExtensionIndexStore
fn clone(&self) -> ExtensionIndexStore
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ExtensionIndexStore
impl RefUnwindSafe for ExtensionIndexStore
impl Send for ExtensionIndexStore
impl Sync for ExtensionIndexStore
impl Unpin for ExtensionIndexStore
impl UnsafeUnpin for ExtensionIndexStore
impl UnwindSafe for ExtensionIndexStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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