pub struct RecvHostMessageOutcome(/* private fields */);Expand description
The return type of recv_host_message host-call (message length and source).
Implementations§
Source§impl RecvHostMessageOutcome
impl RecvHostMessageOutcome
Sourcepub fn new(message_len: u32) -> Result<RecvHostMessageOutcome, ()>
pub fn new(message_len: u32) -> Result<RecvHostMessageOutcome, ()>
Create new outcome from the message length.
Returns an error if the message length is u32::MAX.
Sourcepub fn none() -> RecvHostMessageOutcome
pub fn none() -> RecvHostMessageOutcome
Create new empty outcome.
pub fn into_inner(self) -> Option<u32>
pub fn from_reg(reg: u64) -> RecvHostMessageOutcome
pub fn to_reg(self) -> u64
Trait Implementations§
Source§impl Clone for RecvHostMessageOutcome
impl Clone for RecvHostMessageOutcome
Source§fn clone(&self) -> RecvHostMessageOutcome
fn clone(&self) -> RecvHostMessageOutcome
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 RecvHostMessageOutcome
impl Debug for RecvHostMessageOutcome
impl Copy for RecvHostMessageOutcome
Auto Trait Implementations§
impl Freeze for RecvHostMessageOutcome
impl RefUnwindSafe for RecvHostMessageOutcome
impl Send for RecvHostMessageOutcome
impl Sync for RecvHostMessageOutcome
impl Unpin for RecvHostMessageOutcome
impl UnsafeUnpin for RecvHostMessageOutcome
impl UnwindSafe for RecvHostMessageOutcome
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