pub trait BcsApplication {
type Abi;
// Required method
fn formats() -> Result<Formats>;
// Provided method
fn pruned_formats() -> Result<Formats, PruneError> { ... }
}Expand description
An application using BCS as binary encoding.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn pruned_formats() -> Result<Formats, PruneError>
fn pruned_formats() -> Result<Formats, PruneError>
Like formats, but with the well-known linera-base primitives
pruned from the registry (see Formats::prune_known_primitives) so that they
decode to their human-readable form via LineraEnvironment. This is the form
meant to be published to a formats registry.
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.