[−][src]Struct lucet_runtime::YieldedVal
The value yielded by an instance through a Vmctx
and returned to
the host.
Methods
impl YieldedVal
[src]
pub fn is_none(&self) -> bool
[src]
Returns true
if the guest yielded without a value.
pub fn is_some(&self) -> bool
[src]
Returns true
if the guest yielded with a value.
pub fn downcast<A>(self) -> Result<Box<A>, YieldedVal> where
A: 'static + Any,
[src]
A: 'static + Any,
Attempt to downcast the yielded value to a concrete type, returning the original
YieldedVal
if unsuccessful.
pub fn downcast_ref<A>(&self) -> Option<&A> where
A: 'static + Any,
[src]
A: 'static + Any,
Returns a reference to the yielded value if it is present and of type A
, or None
if it
isn't.
Trait Implementations
Auto Trait Implementations
impl !Send for YieldedVal
impl !Sync for YieldedVal
impl Unpin for YieldedVal
impl !UnwindSafe for YieldedVal
impl !RefUnwindSafe for YieldedVal
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self