pub struct CurlStrategy { /* private fields */ }Expand description
Curl-based strategy for better Cloudflare compatibility
Implementations§
Source§impl CurlStrategy
impl CurlStrategy
Trait Implementations§
Source§impl FetchStrategy for CurlStrategy
impl FetchStrategy for CurlStrategy
Source§fn is_enabled(&self, _config: &StrategyConfig) -> bool
fn is_enabled(&self, _config: &StrategyConfig) -> bool
Check if this strategy is available/enabled
Source§fn fetch_channel<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
channel_name: &'life2 str,
_config: &'life3 StrategyConfig,
) -> Pin<Box<dyn Future<Output = FetchResult<ChannelInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fetch_channel<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
channel_name: &'life2 str,
_config: &'life3 StrategyConfig,
) -> Pin<Box<dyn Future<Output = FetchResult<ChannelInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Fetch channel information using this strategy
Auto Trait Implementations§
impl Freeze for CurlStrategy
impl RefUnwindSafe for CurlStrategy
impl Send for CurlStrategy
impl Sync for CurlStrategy
impl Unpin for CurlStrategy
impl UnwindSafe for CurlStrategy
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