Trait ReadOperation

Source
pub trait ReadOperation: Sized {
    type Seal: RgbSeal;

    // Required method
    fn read_operation(
        &mut self,
    ) -> Result<Option<OperationSeals<Self::Seal>>, impl Error + 'static>;
}
Expand description

Provider which reads an operation and its seals from a consignment stream.

Required Associated Types§

Source

type Seal: RgbSeal

Seal definition type used by operations.

Required Methods§

Source

fn read_operation( &mut self, ) -> Result<Option<OperationSeals<Self::Seal>>, impl Error + 'static>

Reads an operation and its seals from a consignment stream and initialize the witness reader.

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§