pub enum OutMsg {
External(OutMsgExternal),
New(OutMsgNew),
Immediate(OutMsgImmediate),
DequeueImmediate(OutMsgDequeueImmediate),
DequeueShort(OutMsgDequeueShort),
}Expand description
Outbound message.
Variants§
External(OutMsgExternal)
External outbound message.
New(OutMsgNew)
Ordinary (internal) outbound message, generated in this block and included into the outbound queue.
Immediate(OutMsgImmediate)
Immediately processed internal outbound message.
DequeueImmediate(OutMsgDequeueImmediate)
A message that was dequeued from the outbound queue and immediately queued in the same block.
DequeueShort(OutMsgDequeueShort)
A message that was dequeued from the outbound queue.
Implementations§
Source§impl OutMsg
impl OutMsg
Sourcepub fn load_out_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
pub fn load_out_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
Loads an envelope of the outbound message.
Sourcepub fn out_msg_envelope_cell(&self) -> Option<Cell>
pub fn out_msg_envelope_cell(&self) -> Option<Cell>
Loads an envelope of the outbound message.
Sourcepub fn load_message(&self) -> Result<Option<Message<'_>>, Error>
pub fn load_message(&self) -> Result<Option<Message<'_>>, Error>
Loads a non-owned outbound message.
Sourcepub fn load_message_owned(&self) -> Result<Option<OwnedMessage>, Error>
pub fn load_message_owned(&self) -> Result<Option<OwnedMessage>, Error>
Loads an owned outbound message.
Sourcepub fn transaction_cell(&self) -> Option<Cell>
pub fn transaction_cell(&self) -> Option<Cell>
Returns a source transaction of the outbound message.
Sourcepub fn load_transaction(&self) -> Result<Option<Transaction>, Error>
pub fn load_transaction(&self) -> Result<Option<Transaction>, Error>
Loads a source transaction of the outbound message.
Sourcepub fn reimport_msg_cell(&self) -> Option<Cell>
pub fn reimport_msg_cell(&self) -> Option<Cell>
Returns a reimport message cell.
Sourcepub fn compute_exported_value(&self) -> Result<CurrencyCollection, Error>
pub fn compute_exported_value(&self) -> Result<CurrencyCollection, Error>
Compute exported value.
Trait Implementations§
Source§impl Store for OutMsg
impl Store for OutMsg
Source§fn store_into(
&self,
builder: &mut CellBuilder,
cx: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, cx: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for OutMsg
impl StructuralPartialEq for OutMsg
Auto Trait Implementations§
impl Freeze for OutMsg
impl !RefUnwindSafe for OutMsg
impl Send for OutMsg
impl Sync for OutMsg
impl Unpin for OutMsg
impl !UnwindSafe for OutMsg
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.