Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use extension_lifecycle::LifecycleRegistration;
#[cfg(feature = "client-lifecycle")]
#[cfg_attr(docsrs, doc(cfg(feature = "client-lifecycle")))]
pub use extension_lifecycle::{ClientLifecycle, ConnectionScope, ConnectionScopeState};
pub use lifecycle::Connection;
pub use voip::{CallError, Voip};

use crate::cache::Cache;
Expand Down Expand Up @@ -704,6 +705,10 @@ pub enum ConnectError {
/// Construction never completed, so the attempt was rejected before any I/O.
#[error("client construction did not activate")]
NotActivated,
/// The client was shut down. Shutdown is final, so build a new client
/// rather than reconnecting this one.
#[error("client has been shut down")]
Shutdown,
/// A step of the connect flow ran out of time.
#[error("{stage} timed out after {timeout:?}")]
Timeout {
Expand Down Expand Up @@ -767,6 +772,7 @@ impl ConnectError {
ConnectError::Handshake(handshake) => handshake.is_timeout(),
ConnectError::AlreadyConnected
| ConnectError::NotActivated
| ConnectError::Shutdown
| ConnectError::Version(_)
| ConnectError::Transport(_) => false,
}
Expand Down
Loading
Loading