Expand description
Provides access to the traffic information for a repository
Implementations
sourceimpl<C: Clone + Connect + 'static> Traffic<C>
impl<C: Clone + Connect + 'static> Traffic<C>
sourcepub fn referrers(&self) -> Future<Vec<Referrer>>
pub fn referrers(&self) -> Future<Vec<Referrer>>
List the top 10 referrers over the past 14 days
sourcepub fn paths(&self) -> Future<Vec<Path>>
pub fn paths(&self) -> Future<Vec<Path>>
List the top 10 popular contents over the past 14 days
Auto Trait Implementations
impl<C> !RefUnwindSafe for Traffic<C>
impl<C> Send for Traffic<C>
impl<C> Sync for Traffic<C>
impl<C> Unpin for Traffic<C>
impl<C> !UnwindSafe for Traffic<C>
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