pub trait MessagesExt {
type Output: MultiAccumulator + FromIterator<(String, ValueAccumulator)>;
// Required method
fn accumulate_trailers<'a, I, J>(self, specs: I) -> Self::Output
where I: IntoIterator<Item = J>,
J: Borrow<TrailerSpec<'a>>;
}Expand description
Messages iterator extension trait
This trait provides some convenience functionality for iterators over
Messages which does not need to be part of Messages or another iterator.
Required Associated Types§
type Output: MultiAccumulator + FromIterator<(String, ValueAccumulator)>
Required Methods§
Sourcefn accumulate_trailers<'a, I, J>(self, specs: I) -> Self::Output
fn accumulate_trailers<'a, I, J>(self, specs: I) -> Self::Output
Accumulate trailers according to the specification provided
This function accumulates all specified trailers from the messages returned by the iterator.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.