pub struct Bpf { /* private fields */ }
Expand description
Wrapper for bpf_program to ensure correct drops
Implementations§
Source§impl Bpf
impl Bpf
pub fn new(inner: bpf_program) -> Bpf
pub fn inner_mut(&mut self) -> &mut bpf_program
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bpf
impl RefUnwindSafe for Bpf
impl !Send for Bpf
impl !Sync for Bpf
impl Unpin for Bpf
impl UnwindSafe for Bpf
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