pub struct JitCompiler<'a, C: ContextObject> { /* private fields */ }
Expand description
Temporary object which stores the compilation context
Implementations§
Source§impl<'a, C: ContextObject> JitCompiler<'a, C>
impl<'a, C: ContextObject> JitCompiler<'a, C>
Sourcepub fn new(executable: &'a Executable<C>) -> Result<Self, EbpfError>
pub fn new(executable: &'a Executable<C>) -> Result<Self, EbpfError>
Constructs a new compiler and allocates memory for the compilation output
Sourcepub fn compile(self) -> Result<JitProgram, EbpfError>
pub fn compile(self) -> Result<JitProgram, EbpfError>
Compiles the given executable, consuming the compiler
Auto Trait Implementations§
impl<'a, C> Freeze for JitCompiler<'a, C>
impl<'a, C> RefUnwindSafe for JitCompiler<'a, C>
impl<'a, C> !Send for JitCompiler<'a, C>
impl<'a, C> !Sync for JitCompiler<'a, C>
impl<'a, C> Unpin for JitCompiler<'a, C>
impl<'a, C> !UnwindSafe for JitCompiler<'a, C>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more