pub struct ProgramBlob<'a> {
pub metadata: Cow<'a, [u8]>,
pub ro_data: Cow<'a, [u8]>,
pub rw_data: Cow<'a, [u8]>,
pub code_blob: Cow<'a, [u8]>,
pub rw_data_padding_pages: u16,
pub stack_size: u32,
}
Expand description
A JAM-specific program blob.
Fields§
§metadata: Cow<'a, [u8]>
§ro_data: Cow<'a, [u8]>
§rw_data: Cow<'a, [u8]>
§code_blob: Cow<'a, [u8]>
§rw_data_padding_pages: u16
§stack_size: u32
Implementations§
Source§impl<'a> ProgramBlob<'a>
impl<'a> ProgramBlob<'a>
Source§impl<'a> ProgramBlob<'a>
impl<'a> ProgramBlob<'a>
pub fn from_pvm(parts: &'a ProgramParts, metadata: Cow<'a, [u8]>) -> Self
Trait Implementations§
Source§impl From<ProgramBlob<'_>> for ProgramParts
impl From<ProgramBlob<'_>> for ProgramParts
Source§fn from(other: ProgramBlob<'_>) -> Self
fn from(other: ProgramBlob<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ProgramBlob<'a>
impl<'a> RefUnwindSafe for ProgramBlob<'a>
impl<'a> Send for ProgramBlob<'a>
impl<'a> Sync for ProgramBlob<'a>
impl<'a> Unpin for ProgramBlob<'a>
impl<'a> UnwindSafe for ProgramBlob<'a>
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