pub struct FeedManager { /* private fields */ }
Implementations
sourceimpl FeedManager
impl FeedManager
pub fn new(opts: FeedManagerOpts) -> Self
sourcepub async fn refetch(&self, db: &CouchDB, id_or_url: &str) -> Result<()>
pub async fn refetch(&self, db: &CouchDB, id_or_url: &str) -> Result<()>
Refetch a single feed by ID or URL.
sourcepub async fn run_watch(self, db: CouchDB) -> Result<()>
pub async fn run_watch(self, db: CouchDB) -> Result<()>
Opens a feed manager and start to track and watch all feeds in the database, This will load all feeds from CouchDB and then look for incoming feeds in the [ChangesStream]. It will periodically fetch the feeds and insert new items as [Post]s and [Media]s into the database.
Trait Implementations
sourceimpl Clone for FeedManager
impl Clone for FeedManager
sourcefn clone(&self) -> FeedManager
fn clone(&self) -> FeedManager
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for FeedManager
impl Send for FeedManager
impl Sync for FeedManager
impl Unpin for FeedManager
impl !UnwindSafe for FeedManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self