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 duplicate 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more