pub struct FeedCleanerPlugin;Implementations§
Trait Implementations§
Source§impl Default for FeedCleanerPlugin
impl Default for FeedCleanerPlugin
Source§impl Plugin for FeedCleanerPlugin
impl Plugin for FeedCleanerPlugin
Source§fn filter_item<'life0, 'life1, 'async_trait>(
&'life0 self,
item: &'life1 FeedItem,
) -> Pin<Box<dyn Future<Output = Result<FilterDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn filter_item<'life0, 'life1, 'async_trait>(
&'life0 self,
item: &'life1 FeedItem,
) -> Pin<Box<dyn Future<Output = Result<FilterDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluates whether an item should be kept or dropped
Source§fn transform_item<'life0, 'life1, 'async_trait>(
&'life0 self,
item: &'life1 mut FeedItem,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transform_item<'life0, 'life1, 'async_trait>(
&'life0 self,
item: &'life1 mut FeedItem,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Transforms/mutates an item in-place (e.g., cleans URLs, modifies title, alters content)
Source§fn pre_process_feed<'life0, 'life1, 'async_trait>(
&'life0 self,
_feed: &'life1 mut Feed,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pre_process_feed<'life0, 'life1, 'async_trait>(
&'life0 self,
_feed: &'life1 mut Feed,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Feed-level pre-processing (executed before item filtering)
Source§fn post_process_feed<'life0, 'life1, 'async_trait>(
&'life0 self,
_feed: &'life1 mut Feed,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn post_process_feed<'life0, 'life1, 'async_trait>(
&'life0 self,
_feed: &'life1 mut Feed,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Feed-level post-processing (e.g. sorting, item count limiting)
Source§fn on_fetch_error<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_title: &'life2 str,
_error: &'life3 Error,
) -> Pin<Box<dyn Future<Output = Option<Feed>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn on_fetch_error<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_title: &'life2 str,
_error: &'life3 Error,
) -> Pin<Box<dyn Future<Output = Option<Feed>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Invoked when upstream feed fails to fetch or parse. Returns an optional fallback Feed (e.g., NOP feed)
Auto Trait Implementations§
impl Forget for FeedCleanerPlugin
impl Freeze for FeedCleanerPlugin
impl Move for FeedCleanerPlugin
impl RefUnwindSafe for FeedCleanerPlugin
impl Send for FeedCleanerPlugin
impl Sync for FeedCleanerPlugin
impl Unpin for FeedCleanerPlugin
impl UnsafeUnpin for FeedCleanerPlugin
impl UnwindSafe for FeedCleanerPlugin
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