There doesn't seem to be a way to retrieve a list of allAVPs from a Packet currently, just get AVPs with a specific AVPType via Packet::lookup and Packet::lookup_all. Is this intentional?
I see Packet's private attributes field is of type core::attributes::Attributes, which has visibility pub(crate) instead of just pub... so it seems like this might be intentional. If it is, could you provide some of the reasoning as to why? A blanket Packet::get_attributes method would be quite helpful for my use-case.
There doesn't seem to be a way to retrieve a list of all
AVP
s from aPacket
currently, just getAVP
s with a specificAVPType
viaPacket::lookup
andPacket::lookup_all
. Is this intentional?I see
Packet
's privateattributes
field is of typecore::attributes::Attributes
, which has visibilitypub(crate)
instead of justpub
... so it seems like this might be intentional. If it is, could you provide some of the reasoning as to why? A blanketPacket::get_attributes
method would be quite helpful for my use-case.