pub struct HostResult { /* private fields */ }Expand description
Result of host call execution
Corresponds to Lean: structure HostResult
Implementations§
Source§impl HostResult
impl HostResult
Sourcepub fn with_caps(caps: Vec<Capability>) -> Self
pub fn with_caps(caps: Vec<Capability>) -> Self
Create a result with new capabilities
Sourcepub fn new_caps(&self) -> &[Capability]
pub fn new_caps(&self) -> &[Capability]
Get new capabilities
Trait Implementations§
Source§impl Clone for HostResult
impl Clone for HostResult
Source§fn clone(&self) -> HostResult
fn clone(&self) -> HostResult
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 HostResult
impl Debug for HostResult
Source§impl Default for HostResult
impl Default for HostResult
Source§fn default() -> HostResult
fn default() -> HostResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HostResult
impl RefUnwindSafe for HostResult
impl Send for HostResult
impl Sync for HostResult
impl Unpin for HostResult
impl UnsafeUnpin for HostResult
impl UnwindSafe for HostResult
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