pub enum TransportError {
Unsent(String),
Interrupted(String),
TooLarge {
limit: usize,
},
Expired {
sent: bool,
},
PhaseExpired(PhaseExpiry),
}Expand description
Why no complete reply came back.
Variants§
Unsent(String)
Resolution, connect or handshake failed; no request byte left.
Interrupted(String)
The connection failed after request bytes may have left.
TooLarge
The response body exceeds the maximum; reading stopped there.
Expired
The budget, or a shorter transport limit, ran out.
PhaseExpired(PhaseExpiry)
A transport phase’s allowance ran out under an enabled phase policy (spec 020, 3.4); the expiry names the phase and its code.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
impl Eq for TransportError
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Freeze for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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