Struct csaf_walker::visitors::store::StoreVisitor
source · pub struct StoreVisitor {
pub base: PathBuf,
pub no_timestamps: bool,
pub no_xattrs: bool,
}Expand description
Stores all data so that it can be used as a crate::source::Source later.
Fields§
§base: PathBufthe output base
no_timestamps: boolwhether to set the file modification timestamps
no_xattrs: boolwhether to store additional metadata (like the etag) using extended attributes
Trait Implementations§
source§impl RetrievedVisitor for StoreVisitor
impl RetrievedVisitor for StoreVisitor
type Error = StoreRetrievedError
type Context = ()
fn visit_context<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 RetrievalContext<'_> ) -> Pin<Box<dyn Future<Output = Result<Self::Context, Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn visit_advisory<'life0, 'life1, 'async_trait>( &'life0 self, _context: &'life1 Self::Context, result: Result<RetrievedAdvisory, RetrievalError> ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl ValidatedVisitor for StoreVisitor
impl ValidatedVisitor for StoreVisitor
type Error = StoreValidatedError
type Context = ()
fn visit_context<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 ValidationContext<'_> ) -> Pin<Box<dyn Future<Output = Result<Self::Context, Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn visit_advisory<'life0, 'life1, 'async_trait>( &'life0 self, _context: &'life1 Self::Context, result: Result<ValidatedAdvisory, ValidationError> ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for StoreVisitor
impl Send for StoreVisitor
impl Sync for StoreVisitor
impl Unpin for StoreVisitor
impl UnwindSafe for StoreVisitor
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