#[non_exhaustive]pub enum TimeoutError {
Connect {
deadline: Duration,
elapsed: Duration,
last_state: &'static str,
},
KeepaliveInactivity {
deadline: Duration,
elapsed: Duration,
peer: SocketAddr,
},
Disconnect {
deadline: Duration,
elapsed: Duration,
},
VoiceInactivity {
stream_id: StreamId,
elapsed: Duration,
},
AuthConnect {
deadline: Duration,
elapsed: Duration,
},
AuthRead {
deadline: Duration,
elapsed: Duration,
bytes_so_far: usize,
},
}Expand description
Typed deadline-exceeded errors.
Each variant carries enough context to write a useful log line and to drive recovery logic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect
Reflector did not acknowledge LINK1/LINK2/DCS connect within deadline.
Fields
§
last_state: &'static strLast state name observed before the trip (string tag;
see crate::session::client::ClientStateKind for the typed form).
KeepaliveInactivity
Reflector stopped responding to keepalives.
Fields
§
peer: SocketAddrAffected peer.
Disconnect
Disconnect was requested but the reflector never ACKed the unlink.
VoiceInactivity
Voice stream stopped mid-transmission with no EOT for >2s.
AuthConnect
DPlus auth TCP connect took too long.
AuthRead
DPlus auth read stalled waiting for the host list.
Trait Implementations§
Source§impl Clone for TimeoutError
impl Clone for TimeoutError
Source§fn clone(&self) -> TimeoutError
fn clone(&self) -> TimeoutError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeoutError
impl Debug for TimeoutError
Source§impl Display for TimeoutError
impl Display for TimeoutError
Source§impl Error for TimeoutError
impl Error for TimeoutError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TimeoutError> for Error
impl From<TimeoutError> for Error
Source§fn from(value: TimeoutError) -> Self
fn from(value: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimeoutError
impl RefUnwindSafe for TimeoutError
impl Send for TimeoutError
impl Sync for TimeoutError
impl Unpin for TimeoutError
impl UnwindSafe for TimeoutError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more