pub enum RvfError {
Code(ErrorCode),
UnknownCode(u16),
BadMagic {
expected: u32,
got: u32,
},
SizeMismatch {
expected: usize,
got: usize,
},
InvalidEnumValue {
type_name: &'static str,
value: u64,
},
Security(SecurityError),
QualityBelowThreshold {
quality: ResponseQuality,
reason: &'static str,
},
}Expand description
Rust-idiomatic error type wrapping format-level failures.
Variants§
Code(ErrorCode)
A wire-level error code was returned.
UnknownCode(u16)
The raw u16 did not map to a known error code.
BadMagic
A segment header had an invalid magic number.
SizeMismatch
A struct size assertion failed.
InvalidEnumValue
A value was outside the valid enum range.
Security(SecurityError)
Security policy violation during file open (ADR-033 §4).
QualityBelowThreshold
Query result quality is below threshold (ADR-033 §2.4). Contains the QualityEnvelope with partial results and diagnostics.
Trait Implementations§
impl Eq for RvfError
impl StructuralPartialEq for RvfError
Auto Trait Implementations§
impl Freeze for RvfError
impl RefUnwindSafe for RvfError
impl Send for RvfError
impl Sync for RvfError
impl Unpin for RvfError
impl UnsafeUnpin for RvfError
impl UnwindSafe for RvfError
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