pub enum OutAction {
SendMsg {
mode: SendMsgFlags,
out_msg: Lazy<OwnedRelaxedMessage>,
},
SetCode {
new_code: Cell,
},
ReserveCurrency {
mode: ReserveCurrencyFlags,
value: CurrencyCollection,
},
ChangeLibrary {
mode: ChangeLibraryMode,
lib: LibRef,
},
}Expand description
Output action.
Variants§
SendMsg
Sends a raw message contained in cell.
SetCode
Creates an output action that would change this smart contract code to that given by cell.
ReserveCurrency
Creates an output action which would reserve exactly some balance.
ChangeLibrary
Creates an output action that would modify the collection of this smart contract libraries by adding or removing library with code given in cell.
Implementations§
Source§impl OutAction
impl OutAction
Sourcepub const TAG_SEND_MSG: u32 = 247_711_853u32
pub const TAG_SEND_MSG: u32 = 247_711_853u32
Tag for OutAction::SendMsg.
Sourcepub const TAG_SET_CODE: u32 = 2_907_562_126u32
pub const TAG_SET_CODE: u32 = 2_907_562_126u32
Tag for OutAction::SetCode.
Sourcepub const TAG_RESERVE: u32 = 921_090_057u32
pub const TAG_RESERVE: u32 = 921_090_057u32
Tag for OutAction::ReserveCurrency.
Sourcepub const TAG_CHANGE_LIB: u32 = 653_925_844u32
pub const TAG_CHANGE_LIB: u32 = 653_925_844u32
Tag for OutAction::ChangeLibrary.
Trait Implementations§
Source§impl Store for OutAction
impl Store for OutAction
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl Freeze for OutAction
impl !RefUnwindSafe for OutAction
impl Send for OutAction
impl Sync for OutAction
impl Unpin for OutAction
impl !UnwindSafe for OutAction
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