pub struct InMsgExternal {
pub in_msg: Lazy<OwnedMessage>,
pub transaction: Lazy<Transaction>,
}Expand description
Inbound external message.
Fields§
§in_msg: Lazy<OwnedMessage>External message itself.
transaction: Lazy<Transaction>Executed transaction for this external message.
Implementations§
Source§impl InMsgExternal
impl InMsgExternal
Sourcepub fn load_in_msg_info(&self) -> Result<ExtInMsgInfo, Error>
pub fn load_in_msg_info(&self) -> Result<ExtInMsgInfo, Error>
Loads only message info.
Sourcepub fn load_in_msg(&self) -> Result<Message<'_>, Error>
pub fn load_in_msg(&self) -> Result<Message<'_>, Error>
Loads a non-owned message.
Sourcepub fn load_in_msg_owned(&self) -> Result<OwnedMessage, Error>
pub fn load_in_msg_owned(&self) -> Result<OwnedMessage, Error>
Loads an owned message.
Sourcepub fn load_transaction(&self) -> Result<Transaction, Error>
pub fn load_transaction(&self) -> Result<Transaction, Error>
Loads transaction.
Trait Implementations§
Source§impl Clone for InMsgExternal
impl Clone for InMsgExternal
Source§fn clone(&self) -> InMsgExternal
fn clone(&self) -> InMsgExternal
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMsgExternal
impl Debug for InMsgExternal
Source§impl<'tlb> Load<'tlb> for InMsgExternal
impl<'tlb> Load<'tlb> for InMsgExternal
Source§impl PartialEq for InMsgExternal
impl PartialEq for InMsgExternal
Source§impl Serialize for InMsgExternal
impl Serialize for InMsgExternal
Source§impl Store for InMsgExternal
impl Store for InMsgExternal
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.
impl Eq for InMsgExternal
impl StructuralPartialEq for InMsgExternal
Auto Trait Implementations§
impl Freeze for InMsgExternal
impl !RefUnwindSafe for InMsgExternal
impl Send for InMsgExternal
impl Sync for InMsgExternal
impl Unpin for InMsgExternal
impl !UnwindSafe for InMsgExternal
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.