pub trait SkelBuilder<'obj> {
type Output: OpenSkel<'obj>;
// Required methods
fn open(
self,
object: &'obj mut MaybeUninit<OpenObject>,
) -> Result<Self::Output>;
fn open_opts(
self,
open_opts: bpf_object_open_opts,
object: &'obj mut MaybeUninit<OpenObject>,
) -> Result<Self::Output>;
fn object_builder(&self) -> &ObjectBuilder;
fn object_builder_mut(&mut self) -> &mut ObjectBuilder;
}
Expand description
A trait for skeleton builder.
Required Associated Types§
Required Methods§
Sourcefn open(self, object: &'obj mut MaybeUninit<OpenObject>) -> Result<Self::Output>
fn open(self, object: &'obj mut MaybeUninit<OpenObject>) -> Result<Self::Output>
Open eBPF object and return OpenSkel
Sourcefn open_opts(
self,
open_opts: bpf_object_open_opts,
object: &'obj mut MaybeUninit<OpenObject>,
) -> Result<Self::Output>
fn open_opts( self, open_opts: bpf_object_open_opts, object: &'obj mut MaybeUninit<OpenObject>, ) -> Result<Self::Output>
Open eBPF object with libbpf_sys::bpf_object_open_opts
and return OpenSkel
Sourcefn object_builder(&self) -> &ObjectBuilder
fn object_builder(&self) -> &ObjectBuilder
Get a reference to ObjectBuilder
Sourcefn object_builder_mut(&mut self) -> &mut ObjectBuilder
fn object_builder_mut(&mut self) -> &mut ObjectBuilder
Get a mutable reference to ObjectBuilder