pub struct ModuleFeed { /* private fields */ }Expand description
A third-party module release feed — one reqwest::Client, kept
SEPARATE from crate::client::ReqwestGatewayApi (D-03).
Implementations§
Source§impl ModuleFeed
impl ModuleFeed
Sourcepub fn for_base(api_base: Url) -> Result<Self, CoreError>
pub fn for_base(api_base: Url) -> Result<Self, CoreError>
Build against an arbitrary base — the test seam (wiremock servers, and the unroutable-address offline fixtures).
Sourcepub async fn fetch_and_verify(
&self,
spec: &ModuleSpec,
version: &str,
cache_root: &Path,
policy: FetchPolicy,
) -> Result<FetchedModule, CoreError>
pub async fn fetch_and_verify( &self, spec: &ModuleSpec, version: &str, cache_root: &Path, policy: FetchPolicy, ) -> Result<FetchedModule, CoreError>
Resolve, download, verify, and cache spec’s version — or
return it straight from the cache with zero network requests
(see the module doc for the SC-3/SC-4 mechanism).
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleFeed
impl !UnwindSafe for ModuleFeed
impl Freeze for ModuleFeed
impl Send for ModuleFeed
impl Sync for ModuleFeed
impl Unpin for ModuleFeed
impl UnsafeUnpin for ModuleFeed
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