Skip to main content

ObserveResponseChecksum

Trait ObserveResponseChecksum 

Source
pub trait ObserveResponseChecksum:
    Send
    + Sync
    + Debug {
    // Required method
    fn on_event(&self, event: &ChecksumEvent<'_>);
}
Expand description

Receives the response checksum validation events of one operation.

A generated client’s response checksum validation calls on_event. Each attempt that reaches the checksum decision produces either a NotValidated event, or a Validating event followed by one ending per wrapped body: Matched, Mismatched, Errored or Dropped. Events are sent on the task that drives the attempt or reads the body, and on_event must not block.

Required Methods§

Source

fn on_event(&self, event: &ChecksumEvent<'_>)

Receives one event.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§