#[repr(C)]pub struct PJRT_Api {Show 103 fields
pub struct_size: usize,
pub extension_start: *mut PJRT_Extension_Base,
pub pjrt_api_version: PJRT_Api_Version,
pub PJRT_Error_Destroy: PJRT_Error_Destroy,
pub PJRT_Error_Message: PJRT_Error_Message,
pub PJRT_Error_GetCode: PJRT_Error_GetCode,
pub PJRT_Plugin_Initialize: PJRT_Plugin_Initialize,
pub PJRT_Plugin_Attributes: PJRT_Plugin_Attributes,
pub PJRT_Event_Destroy: PJRT_Event_Destroy,
pub PJRT_Event_IsReady: PJRT_Event_IsReady,
pub PJRT_Event_Error: PJRT_Event_Error,
pub PJRT_Event_Await: PJRT_Event_Await,
pub PJRT_Event_OnReady: PJRT_Event_OnReady,
pub PJRT_Client_Create: PJRT_Client_Create,
pub PJRT_Client_Destroy: PJRT_Client_Destroy,
pub PJRT_Client_PlatformName: PJRT_Client_PlatformName,
pub PJRT_Client_ProcessIndex: PJRT_Client_ProcessIndex,
pub PJRT_Client_PlatformVersion: PJRT_Client_PlatformVersion,
pub PJRT_Client_Devices: PJRT_Client_Devices,
pub PJRT_Client_AddressableDevices: PJRT_Client_AddressableDevices,
pub PJRT_Client_LookupDevice: PJRT_Client_LookupDevice,
pub PJRT_Client_LookupAddressableDevice: PJRT_Client_LookupAddressableDevice,
pub PJRT_Client_AddressableMemories: PJRT_Client_AddressableMemories,
pub PJRT_Client_Compile: PJRT_Client_Compile,
pub PJRT_Client_DefaultDeviceAssignment: PJRT_Client_DefaultDeviceAssignment,
pub PJRT_Client_BufferFromHostBuffer: PJRT_Client_BufferFromHostBuffer,
pub PJRT_DeviceDescription_Id: PJRT_DeviceDescription_Id,
pub PJRT_DeviceDescription_ProcessIndex: PJRT_DeviceDescription_ProcessIndex,
pub PJRT_DeviceDescription_Attributes: PJRT_DeviceDescription_Attributes,
pub PJRT_DeviceDescription_Kind: PJRT_DeviceDescription_Kind,
pub PJRT_DeviceDescription_DebugString: PJRT_DeviceDescription_DebugString,
pub PJRT_DeviceDescription_ToString: PJRT_DeviceDescription_ToString,
pub PJRT_Device_GetDescription: PJRT_Device_GetDescription,
pub PJRT_Device_IsAddressable: PJRT_Device_IsAddressable,
pub PJRT_Device_LocalHardwareId: PJRT_Device_LocalHardwareId,
pub PJRT_Device_AddressableMemories: PJRT_Device_AddressableMemories,
pub PJRT_Device_DefaultMemory: PJRT_Device_DefaultMemory,
pub PJRT_Device_MemoryStats: PJRT_Device_MemoryStats,
pub PJRT_Memory_Id: PJRT_Memory_Id,
pub PJRT_Memory_Kind: PJRT_Memory_Kind,
pub PJRT_Memory_DebugString: PJRT_Memory_DebugString,
pub PJRT_Memory_ToString: PJRT_Memory_ToString,
pub PJRT_Memory_AddressableByDevices: PJRT_Memory_AddressableByDevices,
pub PJRT_Executable_Destroy: PJRT_Executable_Destroy,
pub PJRT_Executable_Name: PJRT_Executable_Name,
pub PJRT_Executable_NumReplicas: PJRT_Executable_NumReplicas,
pub PJRT_Executable_NumPartitions: PJRT_Executable_NumPartitions,
pub PJRT_Executable_NumOutputs: PJRT_Executable_NumOutputs,
pub PJRT_Executable_SizeOfGeneratedCodeInBytes: PJRT_Executable_SizeOfGeneratedCodeInBytes,
pub PJRT_Executable_GetCostAnalysis: PJRT_Executable_GetCostAnalysis,
pub PJRT_Executable_OutputMemoryKinds: PJRT_Executable_OutputMemoryKinds,
pub PJRT_Executable_OptimizedProgram: PJRT_Executable_OptimizedProgram,
pub PJRT_Executable_Serialize: PJRT_Executable_Serialize,
pub PJRT_LoadedExecutable_Destroy: PJRT_LoadedExecutable_Destroy,
pub PJRT_LoadedExecutable_GetExecutable: PJRT_LoadedExecutable_GetExecutable,
pub PJRT_LoadedExecutable_AddressableDevices: PJRT_LoadedExecutable_AddressableDevices,
pub PJRT_LoadedExecutable_Delete: PJRT_LoadedExecutable_Delete,
pub PJRT_LoadedExecutable_IsDeleted: PJRT_LoadedExecutable_IsDeleted,
pub PJRT_LoadedExecutable_Execute: PJRT_LoadedExecutable_Execute,
pub PJRT_Executable_DeserializeAndLoad: PJRT_Executable_DeserializeAndLoad,
pub PJRT_LoadedExecutable_Fingerprint: PJRT_LoadedExecutable_Fingerprint,
pub PJRT_Buffer_Destroy: PJRT_Buffer_Destroy,
pub PJRT_Buffer_ElementType: PJRT_Buffer_ElementType,
pub PJRT_Buffer_Dimensions: PJRT_Buffer_Dimensions,
pub PJRT_Buffer_UnpaddedDimensions: PJRT_Buffer_UnpaddedDimensions,
pub PJRT_Buffer_DynamicDimensionIndices: PJRT_Buffer_DynamicDimensionIndices,
pub PJRT_Buffer_GetMemoryLayout: PJRT_Buffer_GetMemoryLayout,
pub PJRT_Buffer_OnDeviceSizeInBytes: PJRT_Buffer_OnDeviceSizeInBytes,
pub PJRT_Buffer_Device: PJRT_Buffer_Device,
pub PJRT_Buffer_Memory: PJRT_Buffer_Memory,
pub PJRT_Buffer_Delete: PJRT_Buffer_Delete,
pub PJRT_Buffer_IsDeleted: PJRT_Buffer_IsDeleted,
pub PJRT_Buffer_CopyToDevice: PJRT_Buffer_CopyToDevice,
pub PJRT_Buffer_ToHostBuffer: PJRT_Buffer_ToHostBuffer,
pub PJRT_Buffer_IsOnCpu: PJRT_Buffer_IsOnCpu,
pub PJRT_Buffer_ReadyEvent: PJRT_Buffer_ReadyEvent,
pub PJRT_Buffer_UnsafePointer: PJRT_Buffer_UnsafePointer,
pub PJRT_Buffer_IncreaseExternalReferenceCount: PJRT_Buffer_IncreaseExternalReferenceCount,
pub PJRT_Buffer_DecreaseExternalReferenceCount: PJRT_Buffer_DecreaseExternalReferenceCount,
pub PJRT_Buffer_OpaqueDeviceMemoryDataPointer: PJRT_Buffer_OpaqueDeviceMemoryDataPointer,
pub PJRT_CopyToDeviceStream_Destroy: PJRT_CopyToDeviceStream_Destroy,
pub PJRT_CopyToDeviceStream_AddChunk: PJRT_CopyToDeviceStream_AddChunk,
pub PJRT_CopyToDeviceStream_TotalBytes: PJRT_CopyToDeviceStream_TotalBytes,
pub PJRT_CopyToDeviceStream_GranuleSize: PJRT_CopyToDeviceStream_GranuleSize,
pub PJRT_CopyToDeviceStream_CurrentBytes: PJRT_CopyToDeviceStream_CurrentBytes,
pub PJRT_TopologyDescription_Create: PJRT_TopologyDescription_Create,
pub PJRT_TopologyDescription_Destroy: PJRT_TopologyDescription_Destroy,
pub PJRT_TopologyDescription_PlatformName: PJRT_TopologyDescription_PlatformName,
pub PJRT_TopologyDescription_PlatformVersion: PJRT_TopologyDescription_PlatformVersion,
pub PJRT_TopologyDescription_GetDeviceDescriptions: PJRT_TopologyDescription_GetDeviceDescriptions,
pub PJRT_TopologyDescription_Serialize: PJRT_TopologyDescription_Serialize,
pub PJRT_TopologyDescription_Attributes: PJRT_TopologyDescription_Attributes,
pub PJRT_Compile: PJRT_Compile,
pub PJRT_Executable_OutputElementTypes: PJRT_Executable_OutputElementTypes,
pub PJRT_Executable_OutputDimensions: PJRT_Executable_OutputDimensions,
pub PJRT_Buffer_CopyToMemory: PJRT_Buffer_CopyToMemory,
pub PJRT_Client_CreateViewOfDeviceBuffer: PJRT_Client_CreateViewOfDeviceBuffer,
pub PJRT_Executable_Fingerprint: PJRT_Executable_Fingerprint,
pub PJRT_Client_TopologyDescription: PJRT_Client_TopologyDescription,
pub PJRT_Executable_GetCompiledMemoryStats: PJRT_Executable_GetCompiledMemoryStats,
pub PJRT_Memory_Kind_Id: PJRT_Memory_Kind_Id,
pub PJRT_ExecuteContext_Create: PJRT_ExecuteContext_Create,
pub PJRT_ExecuteContext_Destroy: PJRT_ExecuteContext_Destroy,
}Fields§
§struct_size: usize§extension_start: *mut PJRT_Extension_Base§pjrt_api_version: PJRT_Api_Version§PJRT_Error_Destroy: PJRT_Error_Destroy§PJRT_Error_Message: PJRT_Error_Message§PJRT_Error_GetCode: PJRT_Error_GetCode§PJRT_Plugin_Initialize: PJRT_Plugin_Initialize§PJRT_Plugin_Attributes: PJRT_Plugin_Attributes§PJRT_Event_Destroy: PJRT_Event_Destroy§PJRT_Event_IsReady: PJRT_Event_IsReady§PJRT_Event_Error: PJRT_Event_Error§PJRT_Event_Await: PJRT_Event_Await§PJRT_Event_OnReady: PJRT_Event_OnReady§PJRT_Client_Create: PJRT_Client_Create§PJRT_Client_Destroy: PJRT_Client_Destroy§PJRT_Client_PlatformName: PJRT_Client_PlatformName§PJRT_Client_ProcessIndex: PJRT_Client_ProcessIndex§PJRT_Client_PlatformVersion: PJRT_Client_PlatformVersion§PJRT_Client_Devices: PJRT_Client_Devices§PJRT_Client_AddressableDevices: PJRT_Client_AddressableDevices§PJRT_Client_LookupDevice: PJRT_Client_LookupDevice§PJRT_Client_LookupAddressableDevice: PJRT_Client_LookupAddressableDevice§PJRT_Client_AddressableMemories: PJRT_Client_AddressableMemories§PJRT_Client_Compile: PJRT_Client_Compile§PJRT_Client_DefaultDeviceAssignment: PJRT_Client_DefaultDeviceAssignment§PJRT_Client_BufferFromHostBuffer: PJRT_Client_BufferFromHostBuffer§PJRT_DeviceDescription_Id: PJRT_DeviceDescription_Id§PJRT_DeviceDescription_ProcessIndex: PJRT_DeviceDescription_ProcessIndex§PJRT_DeviceDescription_Attributes: PJRT_DeviceDescription_Attributes§PJRT_DeviceDescription_Kind: PJRT_DeviceDescription_Kind§PJRT_DeviceDescription_DebugString: PJRT_DeviceDescription_DebugString§PJRT_DeviceDescription_ToString: PJRT_DeviceDescription_ToString§PJRT_Device_GetDescription: PJRT_Device_GetDescription§PJRT_Device_IsAddressable: PJRT_Device_IsAddressable§PJRT_Device_LocalHardwareId: PJRT_Device_LocalHardwareId§PJRT_Device_AddressableMemories: PJRT_Device_AddressableMemories§PJRT_Device_DefaultMemory: PJRT_Device_DefaultMemory§PJRT_Device_MemoryStats: PJRT_Device_MemoryStats§PJRT_Memory_Id: PJRT_Memory_Id§PJRT_Memory_Kind: PJRT_Memory_Kind§PJRT_Memory_DebugString: PJRT_Memory_DebugString§PJRT_Memory_ToString: PJRT_Memory_ToString§PJRT_Memory_AddressableByDevices: PJRT_Memory_AddressableByDevices§PJRT_Executable_Destroy: PJRT_Executable_Destroy§PJRT_Executable_Name: PJRT_Executable_Name§PJRT_Executable_NumReplicas: PJRT_Executable_NumReplicas§PJRT_Executable_NumPartitions: PJRT_Executable_NumPartitions§PJRT_Executable_NumOutputs: PJRT_Executable_NumOutputs§PJRT_Executable_SizeOfGeneratedCodeInBytes: PJRT_Executable_SizeOfGeneratedCodeInBytes§PJRT_Executable_GetCostAnalysis: PJRT_Executable_GetCostAnalysis§PJRT_Executable_OutputMemoryKinds: PJRT_Executable_OutputMemoryKinds§PJRT_Executable_OptimizedProgram: PJRT_Executable_OptimizedProgram§PJRT_Executable_Serialize: PJRT_Executable_Serialize§PJRT_LoadedExecutable_Destroy: PJRT_LoadedExecutable_Destroy§PJRT_LoadedExecutable_GetExecutable: PJRT_LoadedExecutable_GetExecutable§PJRT_LoadedExecutable_AddressableDevices: PJRT_LoadedExecutable_AddressableDevices§PJRT_LoadedExecutable_Delete: PJRT_LoadedExecutable_Delete§PJRT_LoadedExecutable_IsDeleted: PJRT_LoadedExecutable_IsDeleted§PJRT_LoadedExecutable_Execute: PJRT_LoadedExecutable_Execute§PJRT_Executable_DeserializeAndLoad: PJRT_Executable_DeserializeAndLoad§PJRT_LoadedExecutable_Fingerprint: PJRT_LoadedExecutable_Fingerprint§PJRT_Buffer_Destroy: PJRT_Buffer_Destroy§PJRT_Buffer_ElementType: PJRT_Buffer_ElementType§PJRT_Buffer_Dimensions: PJRT_Buffer_Dimensions§PJRT_Buffer_UnpaddedDimensions: PJRT_Buffer_UnpaddedDimensions§PJRT_Buffer_DynamicDimensionIndices: PJRT_Buffer_DynamicDimensionIndices§PJRT_Buffer_GetMemoryLayout: PJRT_Buffer_GetMemoryLayout§PJRT_Buffer_OnDeviceSizeInBytes: PJRT_Buffer_OnDeviceSizeInBytes§PJRT_Buffer_Device: PJRT_Buffer_Device§PJRT_Buffer_Memory: PJRT_Buffer_Memory§PJRT_Buffer_Delete: PJRT_Buffer_Delete§PJRT_Buffer_IsDeleted: PJRT_Buffer_IsDeleted§PJRT_Buffer_CopyToDevice: PJRT_Buffer_CopyToDevice§PJRT_Buffer_ToHostBuffer: PJRT_Buffer_ToHostBuffer§PJRT_Buffer_IsOnCpu: PJRT_Buffer_IsOnCpu§PJRT_Buffer_ReadyEvent: PJRT_Buffer_ReadyEvent§PJRT_Buffer_UnsafePointer: PJRT_Buffer_UnsafePointer§PJRT_Buffer_IncreaseExternalReferenceCount: PJRT_Buffer_IncreaseExternalReferenceCount§PJRT_Buffer_DecreaseExternalReferenceCount: PJRT_Buffer_DecreaseExternalReferenceCount§PJRT_Buffer_OpaqueDeviceMemoryDataPointer: PJRT_Buffer_OpaqueDeviceMemoryDataPointer§PJRT_CopyToDeviceStream_Destroy: PJRT_CopyToDeviceStream_Destroy§PJRT_CopyToDeviceStream_AddChunk: PJRT_CopyToDeviceStream_AddChunk§PJRT_CopyToDeviceStream_TotalBytes: PJRT_CopyToDeviceStream_TotalBytes§PJRT_CopyToDeviceStream_GranuleSize: PJRT_CopyToDeviceStream_GranuleSize§PJRT_CopyToDeviceStream_CurrentBytes: PJRT_CopyToDeviceStream_CurrentBytes§PJRT_TopologyDescription_Create: PJRT_TopologyDescription_Create§PJRT_TopologyDescription_Destroy: PJRT_TopologyDescription_Destroy§PJRT_TopologyDescription_PlatformName: PJRT_TopologyDescription_PlatformName§PJRT_TopologyDescription_PlatformVersion: PJRT_TopologyDescription_PlatformVersion§PJRT_TopologyDescription_GetDeviceDescriptions: PJRT_TopologyDescription_GetDeviceDescriptions§PJRT_TopologyDescription_Serialize: PJRT_TopologyDescription_Serialize§PJRT_TopologyDescription_Attributes: PJRT_TopologyDescription_Attributes§PJRT_Compile: PJRT_Compile§PJRT_Executable_OutputElementTypes: PJRT_Executable_OutputElementTypes§PJRT_Executable_OutputDimensions: PJRT_Executable_OutputDimensions§PJRT_Buffer_CopyToMemory: PJRT_Buffer_CopyToMemory§PJRT_Client_CreateViewOfDeviceBuffer: PJRT_Client_CreateViewOfDeviceBuffer§PJRT_Executable_Fingerprint: PJRT_Executable_Fingerprint§PJRT_Client_TopologyDescription: PJRT_Client_TopologyDescription§PJRT_Executable_GetCompiledMemoryStats: PJRT_Executable_GetCompiledMemoryStats§PJRT_Memory_Kind_Id: PJRT_Memory_Kind_Id§PJRT_ExecuteContext_Create: PJRT_ExecuteContext_Create§PJRT_ExecuteContext_Destroy: PJRT_ExecuteContext_DestroyTrait Implementations§
impl Copy for PJRT_Api
Auto Trait Implementations§
impl Freeze for PJRT_Api
impl RefUnwindSafe for PJRT_Api
impl !Send for PJRT_Api
impl !Sync for PJRT_Api
impl Unpin for PJRT_Api
impl UnwindSafe for PJRT_Api
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)