Skip to main content

AiApi

Struct AiApi 

Source
pub struct AiApi { /* private fields */ }
Expand description

Raw C ABI for GeoKernel.AI. Loaded modules remain resident until process exit.

Implementations§

Source§

impl AiApi

Source

pub const SYMBOLS: &'static [&'static str]

Source

pub unsafe fn load(path: &Path) -> Result<Self, LoadError>

Load a trusted, ABI-compatible GeoKernel runtime module.

§Safety

Library initializers must be safe and every symbol must match this SDK ABI.

Source

pub unsafe fn GeoKernelAI_FreeString(&self, a0: *mut WChar)

Native declaration: void GeoKernelAI_FreeString(wchar_t* value).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_GetAvailableProvidersJson(&self) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_GetAvailableProvidersJson().

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_GetLastError(&self) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_GetLastError().

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_GetRuntimeDiagnosticsJson( &self, a0: *const WChar, ) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_GetRuntimeDiagnosticsJson(const wchar_t* requestJson).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_InspectModelPackageJson( &self, a0: *const WChar, ) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_InspectModelPackageJson(const wchar_t* packagePath).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_RunRasterInference( &self, a0: *const WChar, a1: GeoKernelAIProgressCallback, a2: *mut c_void, ) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_RunRasterInference( const wchar_t* requestJson, GeoKernelAIProgressCallback progress, void* userData).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAI_RunVlmCatalogQuery( &self, a0: *const WChar, a1: *const WChar, ) -> *mut WChar

Native declaration: wchar_t* GeoKernelAI_RunVlmCatalogQuery( const wchar_t* catalogJson, const wchar_t* requestJson).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAiModelRegistry_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelAiModelRegistry_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAiModelRegistry_ResolveJson( &self, a0: *const WChar, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelAiModelRegistry_ResolveJson(const wchar_t* request,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Auto Trait Implementations§

§

impl Freeze for AiApi

§

impl RefUnwindSafe for AiApi

§

impl Send for AiApi

§

impl Sync for AiApi

§

impl Unpin for AiApi

§

impl UnsafeUnpin for AiApi

§

impl UnwindSafe for AiApi

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.