pub struct SpiProgram { /* private fields */ }Implementations§
Source§impl SpiProgram
impl SpiProgram
pub fn new(code: ProgramBlob) -> Self
pub fn with_stack_size(self, size: u32) -> Self
pub fn with_heap_pages(self, pages: u16) -> Self
pub fn with_ro_data(self, data: Vec<u8>) -> Self
pub fn with_rw_data(self, data: Vec<u8>) -> Self
pub fn with_metadata(self, data: Vec<u8>) -> Self
pub fn code(&self) -> &ProgramBlob
pub fn ro_data(&self) -> &[u8] ⓘ
pub fn rw_data(&self) -> &[u8] ⓘ
pub fn heap_pages(&self) -> u16
pub fn metadata(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl Freeze for SpiProgram
impl RefUnwindSafe for SpiProgram
impl Send for SpiProgram
impl Sync for SpiProgram
impl Unpin for SpiProgram
impl UnsafeUnpin for SpiProgram
impl UnwindSafe for SpiProgram
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