Skip to main content

samod_core/network/
dialer_event.rs

1use url::Url;
2
3use super::DialerId;
4
5/// Events related to dialer lifecycle.
6///
7/// These events are emitted by the hub to notify the IO layer of significant
8/// changes in dialer state.
9#[derive(Debug, Clone, PartialEq, Eq)]
10pub enum DialerEvent {
11    /// A dialer has exhausted its retry budget.
12    ///
13    /// No further dial requests will be emitted for this dialer.
14    /// The dialer remains registered but in a terminal `Failed` state.
15    /// The IO layer may choose to remove it or present the failure to the user.
16    MaxRetriesReached { dialer_id: DialerId, url: Url },
17}