pub struct JitCompiler<'a, C>where
C: ContextObject,{ /* private fields */ }Expand description
Temporary object which stores the compilation context
Implementations§
Source§impl<'a, C> JitCompiler<'a, C>where
C: ContextObject,
impl<'a, C> JitCompiler<'a, C>where
C: ContextObject,
Sourcepub fn new(
executable: &'a Executable<C>,
) -> Result<JitCompiler<'a, C>, EbpfError>
pub fn new( executable: &'a Executable<C>, ) -> Result<JitCompiler<'a, C>, 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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