pub struct ModuleBuilder { /* private fields */ }Expand description
Builder for constructing modules
Implementations§
Source§impl ModuleBuilder
impl ModuleBuilder
Sourcepub fn entry_offset(self, offset: u32) -> Self
pub fn entry_offset(self, offset: u32) -> Self
Set entry point offset
Sourcepub fn hw_revision(self, rev: u32) -> Self
pub fn hw_revision(self, rev: u32) -> Self
Set hardware revision requirement
Sourcepub fn manifest(self, manifest: ModuleManifest) -> Self
pub fn manifest(self, manifest: ModuleManifest) -> Self
Add manifest metadata
Sourcepub fn sign(self, keypair: &KeyPair) -> SignedModuleBuilder
pub fn sign(self, keypair: &KeyPair) -> SignedModuleBuilder
Sign the module with a key pair
Sourcepub fn build_unsigned(self) -> Result<Module>
pub fn build_unsigned(self) -> Result<Module>
Build unsigned module (for testing only)
Trait Implementations§
Source§impl Default for ModuleBuilder
impl Default for ModuleBuilder
Source§fn default() -> ModuleBuilder
fn default() -> ModuleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleBuilder
impl RefUnwindSafe for ModuleBuilder
impl Send for ModuleBuilder
impl Sync for ModuleBuilder
impl Unpin for ModuleBuilder
impl UnsafeUnpin for ModuleBuilder
impl UnwindSafe for ModuleBuilder
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