Skip to main content

Crate atrg_xrpc

Crate atrg_xrpc 

Source
Expand description

XRPC route registration helpers and error types for at-rust-go.

Provides xrpc_router() — a pre-configured Axum router for /xrpc/* endpoints that automatically wraps errors in the AT Protocol error envelope.

Re-exports§

pub use error::XrpcError;
pub use error::XrpcErrorName;

Modules§

error
AT Protocol XRPC error envelope.

Functions§

xrpc_auth_required
Convenience constructor: returns an AuthRequired error.
xrpc_forbidden
Convenience constructor: returns a Forbidden error.
xrpc_invalid_request
Convenience constructor: returns an InvalidRequest error.
xrpc_not_found
Convenience constructor: returns a NotFound error.
xrpc_rate_limit
Convenience constructor: returns a RateLimitExceeded error.
xrpc_router
Create a new XRPC router with the standard AT Protocol error fallback.