pub struct PluginLookup {
pub name: String,
pub version: Option<Version>,
}Expand description
Looks up plugin manifests in centralized spin plugin repository.
Fields§
§name: String§version: Option<Version>Implementations§
Source§impl PluginLookup
impl PluginLookup
pub fn new(name: &str, version: Option<Version>) -> Self
pub async fn resolve_manifest( &self, plugins_dir: &Path, skip_compatibility_check: bool, spin_version: &str, ) -> PluginLookupResult<PluginManifest>
pub async fn resolve_manifest_exact( &self, plugins_dir: &Path, ) -> PluginLookupResult<PluginManifest>
pub fn resolve_manifest_exact_from_good_repo( &self, plugins_dir: &Path, ) -> PluginLookupResult<PluginManifest>
Auto Trait Implementations§
impl Freeze for PluginLookup
impl RefUnwindSafe for PluginLookup
impl Send for PluginLookup
impl Sync for PluginLookup
impl Unpin for PluginLookup
impl UnsafeUnpin for PluginLookup
impl UnwindSafe for PluginLookup
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
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