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

A TcHookBuilder is a way to ergonomically create multiple TcHooks All with similar initial values

Once a TcHook is created via the hook() method, the TcHook’s values can still be adjusted before attach() is called

Implementations

Set the initial file descriptor for created hooks this fd should come from a loaded libbpf_rs::Program

Set the initial interface index to attach the hook on

Set the initial parent of a hook

Set whether created hooks should replace existing hooks

Set the initial handle for a hook

Set the initial priority for a hook

Create a Hook given the values previously set

Once a hook is created, the values can still be changed on the TcHook by calling the TcHooks setter methods

Trait Implementations

Formats the value using the given formatter. Read more

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.