pub enum BulkStateError {
UnsupportedFormat(u8),
InvalidRecordLimit(u32),
InvalidPayloadLength {
length: usize,
max: u32,
},
FlowMismatch,
OffsetOverflow,
CreditExceeded {
end: u64,
limit: u64,
},
InvalidCredit(String),
OffsetMismatch {
expected: u64,
actual: u64,
},
FinishMismatch {
expected: u64,
actual: u64,
},
AlreadyFinished,
}Expand description
Validation failure in generation-8 bulk state.
Variants§
UnsupportedFormat(u8)
Unsupported record format.
InvalidRecordLimit(u32)
Negotiated record limit is outside generation-8 bounds.
InvalidPayloadLength
A raw record payload is empty or exceeds the negotiated limit.
FlowMismatch
The record or control belongs to another operation family or flow.
OffsetOverflow
Offset arithmetic overflowed u64.
CreditExceeded
A sender tried to exceed the absolute receive credit.
InvalidCredit(String)
Credit state regressed or violated the negotiated window.
OffsetMismatch
A record did not start at the exact expected stream offset.
FinishMismatch
A finish marker did not match the exact admitted offset.
AlreadyFinished
Data or control arrived after this flow finished.
Trait Implementations§
Source§impl Clone for BulkStateError
impl Clone for BulkStateError
Source§fn clone(&self) -> BulkStateError
fn clone(&self) -> BulkStateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BulkStateError
impl Debug for BulkStateError
Source§impl Display for BulkStateError
impl Display for BulkStateError
impl Eq for BulkStateError
Source§impl Error for BulkStateError
impl Error for BulkStateError
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 BulkStateError
impl PartialEq for BulkStateError
impl StructuralPartialEq for BulkStateError
Auto Trait Implementations§
impl Freeze for BulkStateError
impl RefUnwindSafe for BulkStateError
impl Send for BulkStateError
impl Sync for BulkStateError
impl Unpin for BulkStateError
impl UnsafeUnpin for BulkStateError
impl UnwindSafe for BulkStateError
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