pub struct HttpSource { /* private fields */ }Implementations§
Source§impl HttpSource
impl HttpSource
pub fn new<M: MetadataSource + 'static>( metadata: M, fetcher: Fetcher, options: HttpOptions, ) -> Self
Trait Implementations§
Source§impl Clone for HttpSource
impl Clone for HttpSource
Source§fn clone(&self) -> HttpSource
fn clone(&self) -> HttpSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpSource
impl Debug for HttpSource
Source§impl From<HttpSource> for DispatchSource
impl From<HttpSource> for DispatchSource
Source§fn from(value: HttpSource) -> Self
fn from(value: HttpSource) -> Self
Converts to this type from the input type.
Source§impl KeySource for HttpSource
impl KeySource for HttpSource
Source§impl Source for HttpSource
impl Source for HttpSource
type Error = HttpSourceError
type Retrieved = RetrievedAdvisory
Source§impl Source for HttpSource
impl Source for HttpSource
async fn load_metadata(&self) -> Result<ProviderMetadata, Self::Error>
async fn load_index( &self, context: DistributionContext, ) -> Result<Vec<DiscoveredAdvisory>, Self::Error>
async fn load_advisory( &self, discovered: DiscoveredAdvisory, ) -> Result<RetrievedAdvisory, Self::Error>
Auto Trait Implementations§
impl Freeze for HttpSource
impl !RefUnwindSafe for HttpSource
impl !Send for HttpSource
impl !Sync for HttpSource
impl Unpin for HttpSource
impl !UnwindSafe for HttpSource
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