Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Steiner committed Apr 23, 2021
1 parent f51c7bd commit c507a5f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions xayn-ai-ffi-wasm/src/ai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ impl WXaynAi {
.into_js_result()
.map(|bytes| bytes.as_slice().into())
}

// See [`xaynai_faults()`] for more.
// pub fn faults(&self) -> Faults {

// self.0.errors().into()
// }

// /// See [`xaynai_analytics()`] for more.
// unsafe fn analytics(xaynai: *const Self) -> Result<CAnalytics, ExternError> {
// let xaynai = unsafe { xaynai.as_ref() }.ok_or_else(|| {
// CCode::AiPointer.with_context("Failed to get the analytics: The ai pointer is null")
// })?;

// Ok(CAnalytics(xaynai.0.analytics().cloned()))
// }
}

#[cfg(target_arch = "wasm32")]
Expand Down

0 comments on commit c507a5f

Please sign in to comment.