Struct risc0_zkvm::Binary
source · pub struct Binary { /* private fields */ }
Expand description
Represents a binary executable or image that a zkvm can execute.
Implementations§
source§impl Binary
impl Binary
sourcepub fn new_elf_inline(bytes: Bytes) -> Self
pub fn new_elf_inline(bytes: Bytes) -> Self
Construct a Binary from raw ELF bytes.
sourcepub fn new_elf_path<P: AsRef<Path>>(path: P) -> Self
pub fn new_elf_path<P: AsRef<Path>>(path: P) -> Self
Construct a Binary from an ELF on disk specified by the path
.
sourcepub fn new_image_inline(bytes: Bytes) -> Self
pub fn new_image_inline(bytes: Bytes) -> Self
Construct a Binary from an encoding of a crate::MemoryImage bytes.
sourcepub fn new_image_path<P: AsRef<Path>>(path: P) -> Self
pub fn new_image_path<P: AsRef<Path>>(path: P) -> Self
Construct a Binary from a crate::MemoryImage stored on disk
specified by the path
.
Trait Implementations§
source§impl From<MemoryImage> for Binary
impl From<MemoryImage> for Binary
source§fn from(image: MemoryImage) -> Self
fn from(image: MemoryImage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
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