pub enum CallingMode {
Normal,
Delegate,
Mimic,
}
Expand description
All supported calling modes for FarCall
opcode.
Variants§
Normal
Normal calling mode.
Delegate
Delegate calling mode (similar to delegatecall
in EVM).
Mimic
Mimic calling mode (can only be used by system contracts; allows to emulate eth_call
semantics while retaining the bootloader).
Trait Implementations§
source§impl Clone for CallingMode
impl Clone for CallingMode
source§fn clone(&self) -> CallingMode
fn clone(&self) -> CallingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallingMode
impl Debug for CallingMode
source§impl Hash for CallingMode
impl Hash for CallingMode
source§impl PartialEq for CallingMode
impl PartialEq for CallingMode
impl Copy for CallingMode
impl Eq for CallingMode
impl StructuralPartialEq for CallingMode
Auto Trait Implementations§
impl Freeze for CallingMode
impl RefUnwindSafe for CallingMode
impl Send for CallingMode
impl Sync for CallingMode
impl Unpin for CallingMode
impl UnwindSafe for CallingMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)