pub enum FfiBackend {
Uniffi,
NativeCAbi,
}Expand description
Mobile FFI backend used by generated benchmark runners.
UniFFI remains the default because it is the historical mobench path. Use
FfiBackend::NativeCAbi when the generated app should call the generic
mobench JSON C ABI directly, avoiding binding-generator overhead in the
measured path.
Variants§
Uniffi
Generate and call UniFFI Kotlin/Swift bindings.
NativeCAbi
Call mobench_run_benchmark_json through a small native C ABI bridge.
Implementations§
Source§impl FfiBackend
impl FfiBackend
Trait Implementations§
Source§impl Clone for FfiBackend
impl Clone for FfiBackend
Source§fn clone(&self) -> FfiBackend
fn clone(&self) -> FfiBackend
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 moreimpl Copy for FfiBackend
Source§impl Debug for FfiBackend
impl Debug for FfiBackend
Source§impl Default for FfiBackend
impl Default for FfiBackend
Source§fn default() -> FfiBackend
fn default() -> FfiBackend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FfiBackend
impl<'de> Deserialize<'de> for FfiBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FfiBackend
impl Display for FfiBackend
impl Eq for FfiBackend
Source§impl PartialEq for FfiBackend
impl PartialEq for FfiBackend
Source§fn eq(&self, other: &FfiBackend) -> bool
fn eq(&self, other: &FfiBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FfiBackend
impl Serialize for FfiBackend
impl StructuralPartialEq for FfiBackend
Auto Trait Implementations§
impl Freeze for FfiBackend
impl RefUnwindSafe for FfiBackend
impl Send for FfiBackend
impl Sync for FfiBackend
impl Unpin for FfiBackend
impl UnsafeUnpin for FfiBackend
impl UnwindSafe for FfiBackend
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