pub struct Pauseable { /* private fields */ }Expand description
The Pauseable module.
Implementations§
Source§impl Pauseable
impl Pauseable
Sourcepub fn require_not_paused(&self)
pub fn require_not_paused(&self)
Reverts with [Error::UnpausedRequired] if the contract is paused.
Sourcepub fn require_paused(&self)
pub fn require_paused(&self)
Reverts with [Error::PausedRequired] if the contract is paused.
Trait Implementations§
Source§impl Module for Pauseable
impl Module for Pauseable
Source§fn new(env: Rc<ContractEnv>) -> Self
fn new(env: Rc<ContractEnv>) -> Self
Creates a new instance of the module with the given contract environment.
Source§fn env(&self) -> Rc<ContractEnv>
fn env(&self) -> Rc<ContractEnv>
Returns the contract environment associated with the module.
Source§impl SchemaErrors for Pauseable
impl SchemaErrors for Pauseable
Source§impl SchemaEvents for Pauseable
impl SchemaEvents for Pauseable
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl Freeze for Pauseable
impl !RefUnwindSafe for Pauseable
impl !Send for Pauseable
impl !Sync for Pauseable
impl Unpin for Pauseable
impl !UnwindSafe for Pauseable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more