pub struct GatewayCatalog<G> { /* private fields */ }Expand description
Adapts c3’s InventoryGateway to DownloadCatalog.
Every InventoryError maps to PackageError::CatalogUnavailable, which
is retryable, because the downloads endpoint has no version-rejection
response: a rate limit, a cancellation and a transport failure are all
conditions a later attempt can clear.
Implementations§
Source§impl<G> GatewayCatalog<G>
impl<G> GatewayCatalog<G>
pub const fn new(gateway: G, target: ScaleTarget) -> Self
Trait Implementations§
Source§impl<G: Debug> Debug for GatewayCatalog<G>
impl<G: Debug> Debug for GatewayCatalog<G>
Source§impl<G> DownloadCatalog for GatewayCatalog<G>where
G: InventoryGateway,
impl<G> DownloadCatalog for GatewayCatalog<G>where
G: InventoryGateway,
Auto Trait Implementations§
impl<G> Freeze for GatewayCatalog<G>where
G: Freeze,
impl<G> RefUnwindSafe for GatewayCatalog<G>where
G: RefUnwindSafe,
impl<G> Send for GatewayCatalog<G>where
G: Send,
impl<G> Sync for GatewayCatalog<G>where
G: Sync,
impl<G> Unpin for GatewayCatalog<G>where
G: Unpin,
impl<G> UnsafeUnpin for GatewayCatalog<G>where
G: UnsafeUnpin,
impl<G> UnwindSafe for GatewayCatalog<G>where
G: UnwindSafe,
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