pub trait GmpReportGroupRecord<A: IpAddress> {
// Required methods
fn group(&self) -> MulticastAddr<A>;
fn record_type(&self) -> GroupRecordType;
fn sources(&self) -> impl Iterator<Item: Borrow<A>> + '_;
}
Expand description
A trait abstracting a multicast group record in MLDv2 or IGMPv3.
This trait facilitates the nested iterators required for implementing group records (iterator of groups, each of which with an iterator of sources) without propagating the inner iterator types far up.
An implementation for tuples of (group, record_type, iterator)
is
provided.
Required Methods§
Sourcefn group(&self) -> MulticastAddr<A>
fn group(&self) -> MulticastAddr<A>
Returns the multicast group this report refers to.
Sourcefn record_type(&self) -> GroupRecordType
fn record_type(&self) -> GroupRecordType
Returns record type to insert in the record entry.
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.