[][src]Trait elrond_wasm_module_pause::PauseModule

pub trait PauseModule<T, BigInt, BigUint>: ContractHookApi<BigInt, BigUint> + Sized where
    BigUint: BigUintApi + 'static,
    &'a BigUint: Add<&'b BigUint, Output = BigUint>,
    &'a BigUint: Sub<&'b BigUint, Output = BigUint>,
    &'a BigUint: Mul<&'b BigUint, Output = BigUint>,
    &'a BigUint: Div<&'b BigUint, Output = BigUint>,
    &'a BigUint: Rem<&'b BigUint, Output = BigUint>,
    BigUint: AddAssign<&'b BigUint>,
    BigUint: SubAssign<&'b BigUint>,
    BigUint: MulAssign<&'b BigUint>,
    BigUint: DivAssign<&'b BigUint>,
    BigUint: RemAssign<&'b BigUint>,
    &'a BigUint: BitAnd<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitOr<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitXor<&'b BigUint, Output = BigUint>,
    BigUint: BitAndAssign<&'b BigUint>,
    BigUint: BitOrAssign<&'b BigUint>,
    BigUint: BitXorAssign<&'b BigUint>,
    &'a BigUint: Shr<usize, Output = BigUint>,
    &'a BigUint: Shl<usize, Output = BigUint>,
    BigInt: BigIntApi<BigUint> + 'static,
    &'a BigInt: Add<&'b BigInt, Output = BigInt>,
    &'a BigInt: Sub<&'b BigInt, Output = BigInt>,
    &'a BigInt: Mul<&'b BigInt, Output = BigInt>,
    &'a BigInt: Div<&'b BigInt, Output = BigInt>,
    &'a BigInt: Rem<&'b BigInt, Output = BigInt>,
    BigInt: AddAssign<&'b BigInt>,
    BigInt: SubAssign<&'b BigInt>,
    BigInt: MulAssign<&'b BigInt>,
    BigInt: DivAssign<&'b BigInt>,
    BigInt: RemAssign<&'b BigInt>,
    T: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + Clone + 'static, 
{ fn is_paused(&self) -> bool;
fn set_paused(&self, paused: bool);
fn contract_proxy(
        &self,
        address: &Address
    ) -> Box<OtherContractHandle<T, BigInt, BigUint>>;
fn callback(&self); fn not_paused(&self) -> bool { ... }
fn pause_endpoint(&self) -> SCResult<()> { ... }
fn unpause_endpoint(&self) -> SCResult<()> { ... } }

Required methods

fn is_paused(&self) -> bool

fn set_paused(&self, paused: bool)

fn contract_proxy(
    &self,
    address: &Address
) -> Box<OtherContractHandle<T, BigInt, BigUint>>

fn callback(&self)

Loading content...

Provided methods

fn not_paused(&self) -> bool

fn pause_endpoint(&self) -> SCResult<()>

fn unpause_endpoint(&self) -> SCResult<()>

Loading content...

Implementors

impl<T, BigInt, BigUint> PauseModule<T, BigInt, BigUint> for PauseModuleImpl<T, BigInt, BigUint> where
    BigUint: BigUintApi + 'static,
    &'a BigUint: Add<&'b BigUint, Output = BigUint>,
    &'a BigUint: Sub<&'b BigUint, Output = BigUint>,
    &'a BigUint: Mul<&'b BigUint, Output = BigUint>,
    &'a BigUint: Div<&'b BigUint, Output = BigUint>,
    &'a BigUint: Rem<&'b BigUint, Output = BigUint>,
    BigUint: AddAssign<&'b BigUint>,
    BigUint: SubAssign<&'b BigUint>,
    BigUint: MulAssign<&'b BigUint>,
    BigUint: DivAssign<&'b BigUint>,
    BigUint: RemAssign<&'b BigUint>,
    &'a BigUint: BitAnd<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitOr<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitXor<&'b BigUint, Output = BigUint>,
    BigUint: BitAndAssign<&'b BigUint>,
    BigUint: BitOrAssign<&'b BigUint>,
    BigUint: BitXorAssign<&'b BigUint>,
    &'a BigUint: Shr<usize, Output = BigUint>,
    &'a BigUint: Shl<usize, Output = BigUint>,
    BigInt: BigIntApi<BigUint> + 'static,
    &'a BigInt: Add<&'b BigInt, Output = BigInt>,
    &'a BigInt: Sub<&'b BigInt, Output = BigInt>,
    &'a BigInt: Mul<&'b BigInt, Output = BigInt>,
    &'a BigInt: Div<&'b BigInt, Output = BigInt>,
    &'a BigInt: Rem<&'b BigInt, Output = BigInt>,
    BigInt: AddAssign<&'b BigInt>,
    BigInt: SubAssign<&'b BigInt>,
    BigInt: MulAssign<&'b BigInt>,
    BigInt: DivAssign<&'b BigInt>,
    BigInt: RemAssign<&'b BigInt>,
    T: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + Clone + 'static, 
[src]

Loading content...