pub struct RecvTransactionOutcome(/* private fields */);Expand description
The return type of recv_transaction host-call (payload length and source).
A thin wrapper around LenAndSourceOutcome.
Implementations§
Source§impl RecvTransactionOutcome
impl RecvTransactionOutcome
Sourcepub fn new(len: u32, source: u32) -> Result<RecvTransactionOutcome, ()>
pub fn new(len: u32, source: u32) -> Result<RecvTransactionOutcome, ()>
Creates new outcome from the payload length and source.
Returns an error if the length is u32::MAX.
Sourcepub fn none() -> RecvTransactionOutcome
pub fn none() -> RecvTransactionOutcome
Creates new empty outcome.
Sourcepub fn from_reg(reg: u64) -> RecvTransactionOutcome
pub fn from_reg(reg: u64) -> RecvTransactionOutcome
Creates new outcome from the provided register value.
Trait Implementations§
Source§impl Clone for RecvTransactionOutcome
impl Clone for RecvTransactionOutcome
Source§fn clone(&self) -> RecvTransactionOutcome
fn clone(&self) -> RecvTransactionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecvTransactionOutcome
impl Debug for RecvTransactionOutcome
Source§impl Deref for RecvTransactionOutcome
impl Deref for RecvTransactionOutcome
Source§type Target = LenAndSourceOutcome
type Target = LenAndSourceOutcome
The resulting type after dereferencing.
impl Copy for RecvTransactionOutcome
Auto Trait Implementations§
impl Freeze for RecvTransactionOutcome
impl RefUnwindSafe for RecvTransactionOutcome
impl Send for RecvTransactionOutcome
impl Sync for RecvTransactionOutcome
impl Unpin for RecvTransactionOutcome
impl UnsafeUnpin for RecvTransactionOutcome
impl UnwindSafe for RecvTransactionOutcome
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