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