asterisk-rs-core 0.2.0

Shared types, error framework, and event bus for asterisk-rs
Documentation

asterisk-rs-core

Crates.io docs.rs License

Shared types, error framework, and event bus for asterisk-rs.

This is the foundation crate for the asterisk-rs workspace. Protocol crates (asterisk-rs-ami, asterisk-rs-agi, asterisk-rs-ari) build on top of the types and infrastructure defined here. Most users should depend on the asterisk-rs umbrella crate directly.

Exports

  • Error types -- Error, ConnectionError, AuthError, TimeoutError, ProtocolError
  • Event system -- EventBus<E> and EventSubscription<E> for typed pub/sub
  • Reconnect policy -- ReconnectPolicy with exponential backoff and jitter
  • Credentials -- Credentials with redacted Debug impl

Modules

error, event, config, auth

Install

cargo add asterisk-rs-core

Minimum Supported Rust Version

1.83

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.