Struct csaf_walker::walker::Walker
source · pub struct Walker<S: Source> { /* private fields */ }Implementations§
source§impl<S: Source> Walker<S>
impl<S: Source> Walker<S>
pub fn new(source: S) -> Self
pub fn with_progress(self, progress: Progress) -> Self
sourcepub fn with_distribution_filter<F>(self, distribution_filter: F) -> Self
pub fn with_distribution_filter<F>(self, distribution_filter: F) -> Self
Set a filter for distributions.
Each distribution from the metadata file will be passed to this function, if it returns false, the distribution
will not even be fetched.
pub async fn walk<V>(self, visitor: V) -> Result<(), Error<V::Error, S::Error>>where
V: DiscoveredVisitor,
pub async fn walk_parallel<V>(
self,
limit: usize,
visitor: V
) -> Result<(), Error<V::Error, S::Error>>where
V: DiscoveredVisitor,
Auto Trait Implementations§
impl<S> Freeze for Walker<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Walker<S>
impl<S> !Send for Walker<S>
impl<S> !Sync for Walker<S>
impl<S> Unpin for Walker<S>where
S: Unpin,
impl<S> !UnwindSafe for Walker<S>
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