pub struct FileSource { /* private fields */ }Expand description
A file based source, possibly created by the crate::visitors::store::StoreVisitor.
Implementations§
Trait Implementations§
Source§impl Clone for FileSource
impl Clone for FileSource
Source§fn clone(&self) -> FileSource
fn clone(&self) -> FileSource
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 FileSource
impl Debug for FileSource
Source§impl From<FileSource> for DispatchSource
impl From<FileSource> for DispatchSource
Source§fn from(value: FileSource) -> Self
fn from(value: FileSource) -> Self
Converts to this type from the input type.
Source§impl KeySource for FileSource
impl KeySource for FileSource
Source§impl Source for FileSource
impl Source for FileSource
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 FileSource
impl RefUnwindSafe for FileSource
impl Send for FileSource
impl Sync for FileSource
impl Unpin for FileSource
impl UnsafeUnpin for FileSource
impl UnwindSafe for FileSource
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