pub struct StrategyManager { /* private fields */ }Expand description
Strategy manager that handles multiple fetching strategies
Implementations§
Source§impl StrategyManager
 
impl StrategyManager
Sourcepub fn new() -> Result<Self, FetchError>
 
pub fn new() -> Result<Self, FetchError>
Create a new strategy manager with default strategies
Sourcepub fn with_config(_config: &StrategyConfig) -> Result<Self, FetchError>
 
pub fn with_config(_config: &StrategyConfig) -> Result<Self, FetchError>
Create a strategy manager with custom configuration
Sourcepub async fn fetch_channel(
    &self,
    client: &Client,
    channel_name: &str,
    config: &StrategyConfig,
) -> FetchResult<ChannelInfo>
 
pub async fn fetch_channel( &self, client: &Client, channel_name: &str, config: &StrategyConfig, ) -> FetchResult<ChannelInfo>
Fetch channel information using available strategies
Sourcepub fn strategy_names(&self) -> Vec<&'static str>
 
pub fn strategy_names(&self) -> Vec<&'static str>
Get the names of all available strategies
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrategyManager
impl !RefUnwindSafe for StrategyManager
impl Send for StrategyManager
impl Sync for StrategyManager
impl Unpin for StrategyManager
impl !UnwindSafe for StrategyManager
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