Skip to content

Why no "Packet::get_attributes"? #38

@aiguy110

Description

@aiguy110

There doesn't seem to be a way to retrieve a list of all AVPs 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions