Package-level declarations
Contains Core definitions of for configuring and constructing ksrpc services and stubs.
Contains Core definitions of for configuring and constructing ksrpc services and stubs.
Contains Core definitions of for configuring and constructing ksrpc services and stubs.
Contains Core definitions of for configuring and constructing ksrpc services and stubs.
Contains Core definitions of for configuring and constructing ksrpc services and stubs.
Types
Shared abstract base for transformers whose wire representation is a sub-service reference (a channel id registered on the host, resolved to a client stub on the peer). The base holds the register / lookup machinery operating on the service-facing type T; concrete subclasses adapt a (possibly different) user-facing type O to T via toService / fromService.
Marker for transformers whose wire representation is CallData.Binary / RpcBinaryData, regardless of the user-facing type they adapt. Consumers (e.g. introspection, diagnostics) should treat any implementor as "binary payload" rather than enumerating individual adapter objects.
Interface used for handling any errors that occur during hosting.
Global configuration for KSRPC channels and services.
Base class for exceptions thrown by the ksrpc runtime.
A typed wrapper for an argument captured into a MethodMetadata.
A captured sibling annotation on a @KsMethod function.
Thrown when an endpoint cannot be found. Could happen from version mismatch or other programmer errors.
Wrapper around exceptions thrown in remote calls.
A wrapper around calling into or from stubs/serialization.
Interface for generated companions of RpcService.
Used to find RpcObject of services in js implementations.
Used to find RpcObject of services in native implementations.
Used to find RpcObject of services in js implementations.
Used for implementations of SuspendCloseable that need observers attached to be notified when SuspendCloseable.close is called.
Opt-in fallback for services that want to handle incoming RPC calls targeting method names that are not registered on the service.
Properties
Functions
Convenience method for easily creating a copy of KsrpcEnvironment with a local error listener.
Creates a copy of the KsrpcEnvironment provided and allows changes to it before returning it. This method does NOT modify the original KsrpcEnvironment.
Resolve a KSerializer for type via kotlinx.serialization.serializer, converting any SerializationException into an IllegalArgumentException that names the offending service and type. Used by generated RpcObjectFactory.create bodies.
Convert a T into a SerializedService for hosting.
Build an RpcException carrying the stack captured in this RpcFailure.
Convert a SerializedService to a T for use as a client.