Skip to main content

Crate wscall_server

Crate wscall_server 

Source
Expand description

Reusable WSCALL server framework.

This crate exposes WscallServer plus request and event context types, validation helpers, and transport-facing attachment models.

Modules§

validation

Macros§

wscall_contains_validator
wscall_length_range_validator
wscall_max_length_validator
wscall_min_length_validator
wscall_not_contains_validator
wscall_numeric_max_validator
wscall_numeric_min_validator
wscall_numeric_range_validator
wscall_one_of_validator
wscall_regex_validator

Structs§

ApiContext
Request context passed to API route handlers.
ApiError
Application-level error returned from handlers.
EventContext
Event context passed to event handlers.
ExceptionContext
Context passed to the global exception handler.
FileAttachment
Shared attachment model used by API calls and events. Inline attachment carried alongside JSON params or event data.
ServerConnectionContext
Context passed to server connection lifecycle handlers.
ServerDisconnectContext
Context passed to server disconnect lifecycle handlers.
ServerHandle
Handle that can be cloned into request and event handlers for server push operations.
WscallServer
Main server type used to register routes, filters, and event handlers.

Enums§

ServerError
Errors produced by the reusable server runtime.

Traits§

ValidateParams
Trait for custom parameter validation after JSON binding.