Skip to main content

Crate types_sdk

Crate types_sdk 

Source
Expand description

Types SDK

This crate provides the public API for the types module:

  • TypesClient trait for inter-module communication
  • TypesError for error handling

§Purpose

The types module is responsible for registering core GTS types that are used throughout the framework (e.g., BaseModkitPluginV1 for plugin systems).

§Usage

Consumers obtain the client from ClientHub:

use types_sdk::TypesClient;

// Get the client from ClientHub
let client = hub.get::<dyn TypesClient>()?;

// Check if core types are registered
let ready = client.is_ready().await?;

Re-exports§

pub use api::TypesClient;
pub use error::TypesError;

Modules§

api
TypesClient trait definition.
error
Public error types for the types module.