pub enum CopyEnd {
Eof,
Cancelled,
CapReached,
Errored,
}Expand description
How a single-connection copy ended.
Variants§
Eof
Upstream closed the body (EOF) — the caller reconnects if still recording.
Cancelled
The recorder was asked to stop.
CapReached
The per-run byte cap was reached.
Errored
A read (upstream) or write (sink) error ended this connection — reconnect, counting it as a failure. The bytes written before the error are still reported so the caller’s byte cap and totals stay correct.
Trait Implementations§
impl Eq for CopyEnd
impl StructuralPartialEq for CopyEnd
Auto Trait Implementations§
impl Freeze for CopyEnd
impl RefUnwindSafe for CopyEnd
impl Send for CopyEnd
impl Sync for CopyEnd
impl Unpin for CopyEnd
impl UnsafeUnpin for CopyEnd
impl UnwindSafe for CopyEnd
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.