pub enum InMsg {
External(InMsgExternal),
Immediate(InMsgFinal),
Final(InMsgFinal),
Transit(InMsgTransit),
}Expand description
Inbound message.
Variants§
External(InMsgExternal)
Inbound external message.
Immediate(InMsgFinal)
Immediately routed internal message.
Final(InMsgFinal)
Internal message with a destination in this block.
Transit(InMsgTransit)
Transit internal message.
Implementations§
Source§impl InMsg
impl InMsg
Sourcepub fn load_transaction(&self) -> Result<Option<Transaction>, Error>
pub fn load_transaction(&self) -> Result<Option<Transaction>, Error>
Sourcepub fn transaction_cell(&self) -> Option<Cell>
pub fn transaction_cell(&self) -> Option<Cell>
Sourcepub fn load_msg_owned(&self) -> Result<OwnedMessage, Error>
pub fn load_msg_owned(&self) -> Result<OwnedMessage, Error>
Loads an owned inbound message.
Sourcepub fn load_msg_cell(&self) -> Result<Cell, Error>
pub fn load_msg_cell(&self) -> Result<Cell, Error>
Loads an inbound message cell.
Sourcepub fn in_msg_envelope_cell(&self) -> Option<Cell>
pub fn in_msg_envelope_cell(&self) -> Option<Cell>
Returns an envelope cell of the inbound message.
Sourcepub fn load_in_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
pub fn load_in_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
Loads an inbound message envelope.
Sourcepub fn out_msg_envelope_cell(&self) -> Option<Cell>
pub fn out_msg_envelope_cell(&self) -> Option<Cell>
Returns an outbound envelope cell.
Sourcepub fn load_out_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
pub fn load_out_msg_envelope(&self) -> Result<Option<MsgEnvelope>, Error>
Loads an outbound message envelope.
Sourcepub fn compute_fees(&self) -> Result<ImportFees, Error>
pub fn compute_fees(&self) -> Result<ImportFees, Error>
Computes import fees.
Trait Implementations§
Source§impl Store for InMsg
impl Store for InMsg
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 InMsg
impl StructuralPartialEq for InMsg
Auto Trait Implementations§
impl Freeze for InMsg
impl !RefUnwindSafe for InMsg
impl Send for InMsg
impl Sync for InMsg
impl Unpin for InMsg
impl !UnwindSafe for InMsg
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.