pub trait HasCallResponse: Read {
    // Required method
    fn size(&self) -> u32;
}
Expand description

Objects which can access call responses from contract invocations.

This trait has a Read supertrait which means that structured call responses can be directly deserialized by using .get() function from the Get trait.

The reuse of Read methods is the reason for the slightly strange choice of methods of this trait.

§Deprecation notice

This trait is deprecated along with crate::test_infrastructure.

Use CallResponse instead unless you intend to use the deprecated test infrastructure.

See the crate documentation for more details.

Required Methods§

source

fn size(&self) -> u32

Get the size of the call response to the contract invocation.

Object Safety§

This trait is not object safe.

Implementors§