pub struct BpfSkelBuilder {
pub obj_builder: ObjectBuilder,
}Fields§
§obj_builder: ObjectBuilderImplementations§
Source§impl<'obj> BpfSkelBuilder
impl<'obj> BpfSkelBuilder
fn open_opts_impl( self, open_opts: *const bpf_object_open_opts, object: &'obj mut MaybeUninit<OpenObject>, ) -> Result<OpenBpfSkel<'obj>>
Trait Implementations§
Source§impl Default for BpfSkelBuilder
impl Default for BpfSkelBuilder
Source§fn default() -> BpfSkelBuilder
fn default() -> BpfSkelBuilder
Returns the “default value” for a type. Read more
Source§impl<'obj> SkelBuilder<'obj> for BpfSkelBuilder
impl<'obj> SkelBuilder<'obj> for BpfSkelBuilder
Source§type Output = OpenBpfSkel<'obj>
type Output = OpenBpfSkel<'obj>
Define that when BPF object is opened, the returned type should implement the [
OpenSkel]
traitSource§fn open(
self,
object: &'obj mut MaybeUninit<OpenObject>,
) -> Result<OpenBpfSkel<'obj>>
fn open( self, object: &'obj mut MaybeUninit<OpenObject>, ) -> Result<OpenBpfSkel<'obj>>
Open eBPF object and return [
OpenSkel]Source§fn open_opts(
self,
open_opts: bpf_object_open_opts,
object: &'obj mut MaybeUninit<OpenObject>,
) -> Result<OpenBpfSkel<'obj>>
fn open_opts( self, open_opts: bpf_object_open_opts, object: &'obj mut MaybeUninit<OpenObject>, ) -> Result<OpenBpfSkel<'obj>>
Open eBPF object with [
libbpf_sys::bpf_object_open_opts] and return [OpenSkel]Source§fn object_builder(&self) -> &ObjectBuilder
fn object_builder(&self) -> &ObjectBuilder
Get a reference to [
ObjectBuilder]Source§fn object_builder_mut(&mut self) -> &mut ObjectBuilder
fn object_builder_mut(&mut self) -> &mut ObjectBuilder
Get a mutable reference to [
ObjectBuilder]Auto Trait Implementations§
impl !Freeze for BpfSkelBuilder
impl !RefUnwindSafe for BpfSkelBuilder
impl !Send for BpfSkelBuilder
impl !Sync for BpfSkelBuilder
impl Unpin for BpfSkelBuilder
impl UnsafeUnpin for BpfSkelBuilder
impl UnwindSafe for BpfSkelBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more