pub struct ProgramInfo(_);
Expand description

Provides information about a loaded program, like name, id and statistics

Implementations

The name of the program as was provided when it was load. This is limited to 16 bytes

The name of the program as a &str. If the name was not valid unicode, None is returned

The program id for this program. Each program has a unique id.

Returns the fd associated with the program.

The returned fd must be closed when no longer needed.

Loads a program from a pinned path in bpffs.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.