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§
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>
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.