#[repr(i32)]pub enum ContractMethodEffectView {
Pure = 1,
ReadOnly = 2,
StateChanging = 3,
}Expand description
Const-friendly author declaration; not a compiler or runtime guarantee. Covers the complete invocation, including nested calls and event emission.
Variants§
Pure = 1
Arguments and constants only, without state/context reads or effects.
ReadOnly = 2
May read state and execution context, without application effects.
StateChanging = 3
May produce application effects.
Implementations§
Source§impl ContractMethodEffectView
impl ContractMethodEffectView
pub const fn const_write_cxs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
pub const fn const_write_txs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
Sourcepub const fn const_cxs_size(&self) -> usize
pub const fn const_cxs_size(&self) -> usize
Returns the CXS encoded size of this value in bytes.
Sourcepub const fn const_txs_size(&self) -> usize
pub const fn const_txs_size(&self) -> usize
Returns the TXS encoded size of this value in bytes.
Trait Implementations§
Source§impl Clone for ContractMethodEffectView
impl Clone for ContractMethodEffectView
impl Copy for ContractMethodEffectView
Source§impl Debug for ContractMethodEffectView
impl Debug for ContractMethodEffectView
impl EncodesAs<ContractMethodEffectView> for ContractMethodEffectView
impl Eq for ContractMethodEffectView
Source§impl From<ContractMethodEffectView> for ContractMethodEffect
Available on crate feature owned-model only.
impl From<ContractMethodEffectView> for ContractMethodEffect
Available on crate feature
owned-model only.Source§fn from(value: ContractMethodEffectView) -> Self
fn from(value: ContractMethodEffectView) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContractMethodEffectView
impl PartialEq for ContractMethodEffectView
impl StructuralPartialEq for ContractMethodEffectView
Source§impl WriteXDR for ContractMethodEffectView
impl WriteXDR for ContractMethodEffectView
Source§fn write_xdr<F, W: Writer<F>>(
&self,
__write_xdr_writer: &mut W,
) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>( &self, __write_xdr_writer: &mut W, ) -> WriteResult<()>
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(
&self,
__write_xdr_writer: &mut W,
)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>( &self, __write_xdr_writer: &mut W, )
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for ContractMethodEffectView
impl RefUnwindSafe for ContractMethodEffectView
impl Send for ContractMethodEffectView
impl Sync for ContractMethodEffectView
impl Unpin for ContractMethodEffectView
impl UnsafeUnpin for ContractMethodEffectView
impl UnwindSafe for ContractMethodEffectView
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