pub enum MethodEffect {
Pure,
ReadOnly,
StateChanging,
}Expand description
A method’s declared effect, from #[contract(effect = "...")].
Variants§
Pure
Uses only arguments and constants.
ReadOnly
Reads state or execution context, without application effects.
StateChanging
May change storage, emit events, transfer, or deploy.
Trait Implementations§
Source§impl Clone for MethodEffect
impl Clone for MethodEffect
Source§fn clone(&self) -> MethodEffect
fn clone(&self) -> MethodEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MethodEffect
Source§impl Debug for MethodEffect
impl Debug for MethodEffect
impl Eq for MethodEffect
Source§impl PartialEq for MethodEffect
impl PartialEq for MethodEffect
impl StructuralPartialEq for MethodEffect
Auto Trait Implementations§
impl Freeze for MethodEffect
impl RefUnwindSafe for MethodEffect
impl Send for MethodEffect
impl Sync for MethodEffect
impl Unpin for MethodEffect
impl UnsafeUnpin for MethodEffect
impl UnwindSafe for MethodEffect
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