Struct walker_extras::visitors::SendVisitor
source · #[non_exhaustive]pub struct SendVisitor {
pub url: Url,
pub sender: HttpSender,
pub retries: usize,
pub retry_delay: Option<Duration>,
}Expand description
Send data to a remote sink.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: UrlThe target endpoint
sender: HttpSenderThe HTTP client to use
retries: usizeThe number of retries in case of a server or transmission failure
retry_delay: Option<Duration>The delay between retries
Implementations§
source§impl SendVisitor
impl SendVisitor
source§impl SendVisitor
impl SendVisitor
Trait Implementations§
source§impl Clone for SendVisitor
impl Clone for SendVisitor
source§fn clone(&self) -> SendVisitor
fn clone(&self) -> SendVisitor
Returns a copy 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 RetrievedVisitor for SendVisitor
impl RetrievedVisitor for SendVisitor
type Error = SendRetrievedSbomError
type Context = ()
async fn visit_context( &self, _: &RetrievalContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_sbom( &self, _context: &Self::Context, result: Result<RetrievedSbom, RetrievalError>, ) -> Result<(), Self::Error>
source§impl RetrievedVisitor for SendVisitor
impl RetrievedVisitor for SendVisitor
type Error = SendRetrievedAdvisoryError
type Context = ()
async fn visit_context( &self, _: &RetrievalContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, _context: &Self::Context, result: Result<RetrievedAdvisory, RetrievalError>, ) -> Result<(), Self::Error>
source§impl ValidatedVisitor for SendVisitor
impl ValidatedVisitor for SendVisitor
type Error = SendValidatedSbomError
type Context = ()
async fn visit_context( &self, _: &ValidationContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_sbom( &self, _context: &Self::Context, result: Result<ValidatedSbom, ValidationError>, ) -> Result<(), Self::Error>
source§impl ValidatedVisitor for SendVisitor
impl ValidatedVisitor for SendVisitor
type Error = SendValidatedAdvisoryError
type Context = ()
async fn visit_context( &self, _: &ValidationContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, _context: &Self::Context, result: Result<ValidatedAdvisory, ValidationError>, ) -> Result<(), Self::Error>
Auto Trait Implementations§
impl Freeze for SendVisitor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)