nexus_sdk::legacy

Trait LegacyViewable

Source
pub trait LegacyViewable {
    // Required methods
    fn output<U: DeserializeOwned>(&self) -> Result<U, IOError>;
    fn logs(&self) -> &Vec<String>;
}
Expand description

A view capturing the output of the machine.

Required Methods§

Source

fn output<U: DeserializeOwned>(&self) -> Result<U, IOError>

Get the contents of the output tape written by the zkVM execution by deserializing the output tape as of type U.

Source

fn logs(&self) -> &Vec<String>

Get the logging output of the zkVM.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§