ckb_ssri_std::public_module_traits::udt

Trait UDTPausable

Source
pub trait UDTPausable: UDT {
    // Required methods
    fn pause(
        tx: Option<Transaction>,
        lock_hashes: &Vec<[u8; 32]>,
    ) -> Result<Transaction, Self::Error>;
    fn unpause(
        tx: Option<Transaction>,
        lock_hashes: &Vec<[u8; 32]>,
    ) -> Result<Transaction, Self::Error>;
    fn is_paused(lock_hashes: &Vec<[u8; 32]>) -> Result<Vec<bool>, Self::Error>;
    fn enumerate_paused(
        offset: u64,
        limit: u64,
    ) -> Result<Byte32Vec, Self::Error>;
}

Required Methods§

Source

fn pause( tx: Option<Transaction>, lock_hashes: &Vec<[u8; 32]>, ) -> Result<Transaction, Self::Error>

Source

fn unpause( tx: Option<Transaction>, lock_hashes: &Vec<[u8; 32]>, ) -> Result<Transaction, Self::Error>

Source

fn is_paused(lock_hashes: &Vec<[u8; 32]>) -> Result<Vec<bool>, Self::Error>

Source

fn enumerate_paused(offset: u64, limit: u64) -> Result<Byte32Vec, Self::Error>

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§