pub struct ObjectBuilder { /* private fields */ }
Expand description

Builder for creating an OpenObject. Typically the entry point into libbpf-rs.

Implementations

Override the generated name that would have been inferred from the constructor.

Option to parse map definitions non-strictly, allowing extra attributes/data

Option to print debug output to stderr.

Note: This function uses set_print internally and will overwrite any callbacks currently in use.

Get an instance of libbpf_sys::bpf_object_open_opts.

Trait Implementations

Returns the “default value” for a type. Read more

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.