Module interface

Source
Expand description

Interfaces and components for internal usage.

Re-exports§

pub use abi_stable;

Modules§

ServiceStable_trait
This module is generated by the #[sabi_trait] attribute on ServiceStable
Validator_trait
This module is generated by the #[sabi_trait] attribute on Validator

Structs§

PicoContext
Context of current instance. Produced by picodata.
ServiceId
Unique service identifier.
ServiceProxy
Implementation of ServiceStable
ServiceRegistry
Registry for services. Used by picodata to create instances of services.
ServiceStable_TO
The trait object for ServiceStable.
Validator_TO
The trait object for Validator.

Traits§

Service
Service trait. Implement it in your code to create a service.
ServiceStable
Safe trait for sending a service trait object between ABI boundary. Define interface like Service trait but using safe types from abi_stable crate.
Validator
Config validator stable trait. The reason for the existence of this trait is that abi_stable crate doesn’t support closures.

Type Aliases§

CallbackResult
ErrorBox
Error type, return it from your callbacks.
FnServiceRegistrar
ServiceBox
Final safe service trait object type. Can be used on both sides of ABI.
ServiceStable_CTO
A type alias for the const-constructible ServiceStable_TO.
ValidatorBox
Validator_CTO
A type alias for the const-constructible Validator_TO.