#[non_exhaustive]pub enum WriteProgressError {
StaleEpoch {
expected: ConnectionEpoch,
received: ConnectionEpoch,
},
NoPendingWrite,
OutOfOrderEffect {
expected: EffectId,
received: EffectId,
},
ExceedsRemaining {
written: usize,
remaining: usize,
},
ProgressAccountingOverflow {
measured: usize,
written: usize,
},
RetainedAccountingUnderflow {
retained: RetainedBytes,
released: RetainedBytes,
},
}Expand description
Why reported transport progress could not mutate the FIFO front.
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.
StaleEpoch
The progress event belongs to another epoch.
Fields
§
expected: ConnectionEpochEpoch owned by the writer.
§
received: ConnectionEpochEpoch supplied with progress.
NoPendingWrite
No frame currently awaits progress.
OutOfOrderEffect
Progress named an effect other than the FIFO front.
Fields
ExceedsRemaining
Reported bytes exceed the frame’s remaining bytes.
ProgressAccountingOverflow
Cached progress exceeded the frame’s commit-time wire measurement.
Fields
RetainedAccountingUnderflow
Internal retained-byte release exceeded the writer’s accounted total.
Fields
§
retained: RetainedBytesBytes accounted before release.
§
released: RetainedBytesBytes the completed or discarded frame required releasing.
Trait Implementations§
Source§impl Clone for WriteProgressError
impl Clone for WriteProgressError
impl Copy for WriteProgressError
Source§impl Debug for WriteProgressError
impl Debug for WriteProgressError
Source§impl Display for WriteProgressError
impl Display for WriteProgressError
impl Eq for WriteProgressError
Source§impl Error for WriteProgressError
impl Error for WriteProgressError
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 PartialEq for WriteProgressError
impl PartialEq for WriteProgressError
impl StructuralPartialEq for WriteProgressError
Auto Trait Implementations§
impl Freeze for WriteProgressError
impl RefUnwindSafe for WriteProgressError
impl Send for WriteProgressError
impl Sync for WriteProgressError
impl Unpin for WriteProgressError
impl UnsafeUnpin for WriteProgressError
impl UnwindSafe for WriteProgressError
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