Expand description
Utility module providing helper types and macros for the I/O event system.
This module contains various utility components that support the event system:
- Macros for creating subscribers
- Type aliases for common result types
- Error handling utilities
- Iterator implementations for error handling
§Examples
use ioevent::prelude::*;
// Using the create_subscriber macro
#[subscriber]
async fn handle_event(state: State<()>, event: MyEvent) -> Result {
println!("Event received: {:?}", event);
Ok(())
}
let subscriber = create_subscriber!(handle_event);For more examples and detailed usage, see the individual component documentation.
- Macros for creating surs
- Type aliases for common result types
Enums§
- Center
Error - An error that can occur in the center ticker.
- Center
Error Iter - An iterator over center errors that can occur during event distribution.
Type Aliases§
- Result
- A type alias for the result of a function that returns a CallSubscribeError.