pub trait RequestBodyHasher {
type Error;
// Required methods
fn digest_algorithm(&self) -> SigningDigestAlgorithm<'_>;
fn hash_body(
&self,
body: &[u8],
output: &mut [u8],
) -> Result<usize, Self::Error>;
}Expand description
Caller-provided request-body hashing implementation.
Required Associated Types§
Required Methods§
Sourcefn digest_algorithm(&self) -> SigningDigestAlgorithm<'_>
fn digest_algorithm(&self) -> SigningDigestAlgorithm<'_>
Returns the exact digest algorithm implemented by this hasher.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".