Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Usage Guide

Practical patterns for using aspect-rs in real applications.

Patterns Covered

Basic Patterns

  • Logging
  • Timing
  • Counting function calls

Production Patterns

  • Caching expensive computations
  • Rate limiting APIs
  • Circuit breakers for resilience
  • Transaction management

Advanced Patterns

  • Aspect composition
  • Ordering multiple aspects
  • Conditional aspect application
  • Async function aspects

See Basic Patterns to start.