Skip to main content

Contract

Trait Contract 

Source
pub trait Contract {
    // Required methods
    fn interface() -> Interface;
    fn stamp() -> &'static Stamp;
}
Expand description

A contract’s shape, as a typed slot names it: implemented by the macro for dyn ForgePeer (a contract’s peer trait).

Required Methods§

Source

fn interface() -> Interface

The contract’s interface, at compile time’s schema.

Source

fn stamp() -> &'static Stamp

What its client was generated from.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§