Struct csaf_walker::visitors::send::SendVisitor
source · pub struct SendVisitor {
pub url: Url,
pub sender: HttpSender,
}Expand description
Stores all data so that it can be used as a crate::source::Source later.
Fields§
§url: UrlThe target endpoint
sender: HttpSenderThe HTTP client to use
Trait Implementations§
source§impl RetrievedVisitor for SendVisitor
impl RetrievedVisitor for SendVisitor
type Error = SendRetrievedError
type Context = ()
fn visit_context<'life0, 'life1, 'async_trait>( &'life0 self, _: &'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 SendVisitor
impl ValidatedVisitor for SendVisitor
type Error = SendValidatedError
type Context = ()
fn visit_context<'life0, 'life1, 'async_trait>( &'life0 self, _: &'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 SendVisitor
impl Send for SendVisitor
impl Sync for SendVisitor
impl Unpin for SendVisitor
impl !UnwindSafe for SendVisitor
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