[−][src]Struct libbpf_rs::ObjectBuilder
Builder for creating an OpenObject
. Typically the entry point into libbpf-rs.
Implementations
impl ObjectBuilder
[src]
pub fn name<T: AsRef<str>>(&mut self, name: T) -> &mut Self
[src]
Override the generated name that would have been inferred from the constructor.
pub fn relaxed_maps(&mut self, relaxed_maps: bool) -> &mut Self
[src]
Option to parse map definitions non-strictly, allowing extra attributes/data
pub fn debug(&mut self, dbg: bool) -> &mut Self
[src]
Option to print debug output to stderr.
pub fn open_file<P: AsRef<Path>>(&mut self, path: P) -> Result<OpenObject>
[src]
pub fn open_memory<T: AsRef<str>>(
&mut self,
name: T,
mem: &[u8]
) -> Result<OpenObject>
[src]
&mut self,
name: T,
mem: &[u8]
) -> Result<OpenObject>
Trait Implementations
impl Default for ObjectBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectBuilder
impl Send for ObjectBuilder
impl Sync for ObjectBuilder
impl Unpin for ObjectBuilder
impl UnwindSafe for ObjectBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,