pub(crate) enum ConnectionError {
Http(Error),
Read(Error),
Write(Error),
UnclearPart,
}Expand description
Why a connection stopped early.
Variants§
Http(Error)
Read(Error)
Reading the body from the server failed.
Write(Error)
Writing the file failed.
UnclearPart
The server sent part of the file without saying which part.
Implementations§
Source§impl ConnectionError
impl ConnectionError
Sourcepub(crate) fn is_transient(&self) -> bool
pub(crate) fn is_transient(&self) -> bool
Whether trying again may work: the body broke off, connecting timed out, or the
server had a problem of its own, a 5xx status.
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl Display for ConnectionError
impl Display for ConnectionError
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionError
impl !UnwindSafe for ConnectionError
impl Freeze for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
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