pub struct LocalArch { /* private fields */ }Expand description
In-process Arch backend.
Implementations§
Trait Implementations§
Source§impl Arch for LocalArch
impl Arch for LocalArch
type Error = LocalArchError
Source§fn invoke(
&mut self,
_target: InstanceRef,
_endpoint: u16,
_args: &[u8],
_opts: InvokeOptions,
) -> Result<InvokeOutcome, Self::Error>
fn invoke( &mut self, _target: InstanceRef, _endpoint: u16, _args: &[u8], _opts: InvokeOptions, ) -> Result<InvokeOutcome, Self::Error>
Invoke
endpoint on the Cap::Instance identified by
target, passing args (SCALE-encoded, by convention). The
Arch impl is responsible for executing the underlying JAVM
program to termination (HALT / yield / fault / gas-exhausted)
and reporting the outcome.Source§fn state_root(&self) -> CapHash
fn state_root(&self) -> CapHash
Content-addressed root of the Arch’s current state — the hash
of the invoking
Cap::Instance after the most recent
invocation (or genesis if none).Auto Trait Implementations§
impl Freeze for LocalArch
impl RefUnwindSafe for LocalArch
impl Send for LocalArch
impl Sync for LocalArch
impl Unpin for LocalArch
impl UnsafeUnpin for LocalArch
impl UnwindSafe for LocalArch
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.