pub struct GoModules { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Registry for GoModules
impl Registry for GoModules
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable registry name.
Source§fn get_package<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = RegistryResult<PackageInfo>> + Send + 'a>>
fn get_package<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = RegistryResult<PackageInfo>> + Send + 'a>>
Fetch package metadata (description, latest version, URLs).
Source§fn get_versions<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<VersionInfo>>> + Send + 'a>>
fn get_versions<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<VersionInfo>>> + Send + 'a>>
List all published versions, newest first.
Source§fn search<'a>(
&'a self,
_query: &'a str,
_limit: usize,
) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<SearchResult>>> + Send + 'a>>
fn search<'a>( &'a self, _query: &'a str, _limit: usize, ) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<SearchResult>>> + Send + 'a>>
Search packages by query string.
Source§fn supports_latest_version(&self) -> bool
fn supports_latest_version(&self) -> bool
Whether
get_latest_version yields a reliable result. Registries whose
versions can be ordered by semver return true. Docker Hub orders
free-form, non-semver tags by push date, so “latest” is not meaningful;
it returns false and callers should use list_versions instead.Auto Trait Implementations§
impl !RefUnwindSafe for GoModules
impl !UnwindSafe for GoModules
impl Freeze for GoModules
impl Send for GoModules
impl Sync for GoModules
impl Unpin for GoModules
impl UnsafeUnpin for GoModules
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