Commitment

Trait Commitment 

Source
pub trait Commitment {
    // Required methods
    fn processed(&self) -> Self;
    fn confirmed(&self) -> Self;
    fn finalized(&self) -> Self;
    fn into(&self, commitment_str: &str) -> Self;
    fn as_str(&self) -> &str;
}

Required Methods§

Source

fn processed(&self) -> Self

Source

fn confirmed(&self) -> Self

Source

fn finalized(&self) -> Self

Source

fn into(&self, commitment_str: &str) -> Self

Source

fn as_str(&self) -> &str

Get the commitment as a str format

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§