pub struct Compiler { /* private fields */ }Expand description
The Compiler is the center piece of squid. It loads ELF files, runs passes and launches a backend
to obtain a Runtime.
To obtain a Compiler instance, call Compiler::loader. Then you can run one or more passes
with Compiler::run_pass before compiling the process image with Compiler::compile.
Implementations§
Source§impl Compiler
impl Compiler
Sourcepub fn loader() -> Loader
pub fn loader() -> Loader
Create a new Compiler by symbolically loading an ELF file and creating a process image.
See the Loader for details about how the ELF-loader can be configured.
Sourcepub fn process_image(&self) -> &ProcessImage
pub fn process_image(&self) -> &ProcessImage
Access the process image, which is the result of symbolically loading a binary
Sourcepub fn event_pool(&self) -> &EventPool
pub fn event_pool(&self) -> &EventPool
Access the event pool, which manages all events that can be thrown at runtime
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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