pub enum FfiBackend {
Uniffi,
NativeCAbi,
BoltFfi,
}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, or FfiBackend::BoltFfi when the generated
app should call BoltFFI-generated Kotlin/Swift bindings.
Variants§
Uniffi
Generate and call UniFFI Kotlin/Swift bindings.
NativeCAbi
Call mobench_run_benchmark_json through a small native C ABI bridge.
BoltFfi
Generate and call BoltFFI Kotlin/Swift bindings.
Implementations§
Source§impl FfiBackend
impl FfiBackend
Sourcepub fn uses_uniffi(&self) -> bool
pub fn uses_uniffi(&self) -> bool
Returns true when this backend needs UniFFI binding generation.
Sourcepub fn uses_boltffi(&self) -> bool
pub fn uses_boltffi(&self) -> bool
Returns true when this backend needs BoltFFI binding generation.
Sourcepub fn uses_native_c_abi(&self) -> bool
pub fn uses_native_c_abi(&self) -> bool
Returns true when this backend calls the direct mobench C ABI bridge.
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§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