pub enum RelationInterchangeError {
BadMagic {
observed: [u8; 4],
},
UnsupportedVersion {
version: u32,
},
Truncated {
field: &'static str,
},
TrailingBytes {
trailing: usize,
},
EmptyRelation {
relation: &'static str,
},
DuplicateId {
relation: &'static str,
id: u32,
},
InvalidEndpointSpan {
id: u32,
start_byte: u32,
end_byte: u32,
},
MissingWitnessEndpoint {
relation: &'static str,
id: u32,
},
InvalidWitnessPath {
source_id: u32,
sink_id: u32,
},
}Expand description
Relation interchange validation and decode failures.
Variants§
BadMagic
Buffer did not start with the interchange magic.
UnsupportedVersion
Unsupported schema version.
Truncated
Input bytes ended before a required field.
TrailingBytes
Decode consumed fewer bytes than supplied.
EmptyRelation
Required relation family was empty.
DuplicateId
Duplicate tuple id in a relation family.
InvalidEndpointSpan
Endpoint span is reversed.
MissingWitnessEndpoint
Witness references a missing source or sink endpoint.
InvalidWitnessPath
Witness path is empty or does not connect source and sink nodes.
Trait Implementations§
Source§impl Clone for RelationInterchangeError
impl Clone for RelationInterchangeError
Source§fn clone(&self) -> RelationInterchangeError
fn clone(&self) -> RelationInterchangeError
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 RelationInterchangeError
impl Debug for RelationInterchangeError
Source§impl Display for RelationInterchangeError
impl Display for RelationInterchangeError
impl Eq for RelationInterchangeError
Source§impl Error for RelationInterchangeError
impl Error for RelationInterchangeError
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 RelationInterchangeError
impl PartialEq for RelationInterchangeError
impl StructuralPartialEq for RelationInterchangeError
Auto Trait Implementations§
impl Freeze for RelationInterchangeError
impl RefUnwindSafe for RelationInterchangeError
impl Send for RelationInterchangeError
impl Sync for RelationInterchangeError
impl Unpin for RelationInterchangeError
impl UnsafeUnpin for RelationInterchangeError
impl UnwindSafe for RelationInterchangeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.