pub enum TaskError {
AllUnconfirmedTimeout,
NoLinksTimeout,
ProtocolError {
link_id: LinkId,
error: String,
},
ServerIdMismatch,
Terminated,
}
Expand description
Error indicating why a connection of aggregated links failed.
Variants§
AllUnconfirmedTimeout
All links were unconfirmed for too long at the same time.
NoLinksTimeout
No links were available for too long.
ProtocolError
A protocol error occured on a link.
ServerIdMismatch
A link connected to another server than the other links.
This will occur when the server is restarted while a client is connected.
Terminated
The task was terminated, possibly due to the runtime shutting down.
Trait Implementations§
Source§impl Error for TaskError
impl Error for TaskError
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()
impl Eq for TaskError
impl StructuralPartialEq for TaskError
Auto Trait Implementations§
impl Freeze for TaskError
impl RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl UnwindSafe for TaskError
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