pub struct TestCaseOptions {
pub guest_caller_async: bool,
pub guest_callee_async: bool,
pub host_async: bool,
pub caller_encoding: StringEncoding,
pub callee_encoding: StringEncoding,
pub caller_lift_abi: LiftAbi,
pub callee_lift_abi: LiftAbi,
pub caller_lower_abi: LowerAbi,
pub callee_lower_abi: LowerAbi,
}Expand description
Collection of options which configure how the caller/callee/etc ABIs are all configured.
Fields§
§guest_caller_async: boolWhether or not the guest caller component (the entrypoint) is using an
async function type.
guest_callee_async: boolWhether or not the guest callee component (what the entrypoint calls)
is using an async function type.
host_async: boolWhether or not the host is using an async function type (what the guest callee calls).
caller_encoding: StringEncodingThe string encoding of the caller component.
callee_encoding: StringEncodingThe string encoding of the callee component.
caller_lift_abi: LiftAbiThe ABI that the caller component is using to lift its export (the main entrypoint).
callee_lift_abi: LiftAbiThe ABI that the callee component is using to lift its export (called by the caller).
caller_lower_abi: LowerAbiThe ABI that the caller component is using to lower its import (the callee’s export).
callee_lower_abi: LowerAbiThe ABI that the callee component is using to lower its import (the host function).
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for TestCaseOptions
impl<'arbitrary> Arbitrary<'arbitrary> for TestCaseOptions
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for TestCaseOptions
impl Clone for TestCaseOptions
Source§fn clone(&self) -> TestCaseOptions
fn clone(&self) -> TestCaseOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TestCaseOptions
impl Debug for TestCaseOptions
Source§impl ToTokens for TestCaseOptions
impl ToTokens for TestCaseOptions
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for TestCaseOptions
Auto Trait Implementations§
impl Freeze for TestCaseOptions
impl RefUnwindSafe for TestCaseOptions
impl Send for TestCaseOptions
impl Sync for TestCaseOptions
impl Unpin for TestCaseOptions
impl UnwindSafe for TestCaseOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more