pub struct RoutingModule { /* private fields */ }Expand description
A routing module submitted for loading.
Carries the module bytecode (used to derive its ContentHash) and the
native entrypoint the loaded module executes.
Implementations§
Source§impl RoutingModule
impl RoutingModule
Sourcepub fn new<F>(bytecode: &[u8], logic: F) -> Self
pub fn new<F>(bytecode: &[u8], logic: F) -> Self
Creates a routing module from its bytecode and native entrypoint.
Sourcepub const fn content_hash(&self) -> ContentHash
pub const fn content_hash(&self) -> ContentHash
Returns the content hash of the module.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingModule
impl !UnwindSafe for RoutingModule
impl Freeze for RoutingModule
impl Send for RoutingModule
impl Sync for RoutingModule
impl Unpin for RoutingModule
impl UnsafeUnpin for RoutingModule
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