pub struct HybridVersionClient { /* private fields */ }Expand description
Hybrid version discovery client that prioritizes modern HTTP endpoints
Implementations§
Source§impl HybridVersionClient
impl HybridVersionClient
Sourcepub async fn new(region: RibbitRegion) -> Result<Self>
pub async fn new(region: RibbitRegion) -> Result<Self>
Create a new hybrid version discovery client
Sourcepub async fn http_only(region: RibbitRegion) -> Result<Self>
pub async fn http_only(region: RibbitRegion) -> Result<Self>
Create a new hybrid client with HTTP-only (no Ribbit fallback)
Sourcepub fn set_ribbit_fallback(&mut self, enabled: bool)
pub fn set_ribbit_fallback(&mut self, enabled: bool)
Enable or disable Ribbit fallback
Sourcepub async fn get_product_versions(
&self,
product: &str,
) -> Result<ProductVersionsResponse>
pub async fn get_product_versions( &self, product: &str, ) -> Result<ProductVersionsResponse>
Get product versions with HTTP-first, Ribbit-fallback strategy
Sourcepub async fn get_product_cdns(
&self,
product: &str,
) -> Result<ProductCdnsResponse>
pub async fn get_product_cdns( &self, product: &str, ) -> Result<ProductCdnsResponse>
Get CDN configuration with HTTP-first, Ribbit-fallback strategy
Sourcepub fn region(&self) -> RibbitRegion
pub fn region(&self) -> RibbitRegion
Get the current region
Sourcepub fn has_ribbit_fallback(&self) -> bool
pub fn has_ribbit_fallback(&self) -> bool
Check if Ribbit fallback is available and enabled
Auto Trait Implementations§
impl Freeze for HybridVersionClient
impl !RefUnwindSafe for HybridVersionClient
impl Send for HybridVersionClient
impl Sync for HybridVersionClient
impl Unpin for HybridVersionClient
impl !UnwindSafe for HybridVersionClient
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