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
AuthRequirederror. - xrpc_
forbidden - Convenience constructor: returns a
Forbiddenerror. - xrpc_
invalid_ request - Convenience constructor: returns an
InvalidRequesterror. - xrpc_
not_ found - Convenience constructor: returns a
NotFounderror. - xrpc_
rate_ limit - Convenience constructor: returns a
RateLimitExceedederror. - xrpc_
router - Create a new XRPC router with the standard AT Protocol error fallback.