#[non_exhaustive]pub enum SemanticHypergraphError {
Show 14 variants
InvalidCapacity {
kind: &'static str,
value: u32,
},
InvalidInput {
detail: String,
},
ForeignHandle {
kind: SemanticHandleKind,
},
SlotOutOfRange {
kind: SemanticHandleKind,
slot: u32,
capacity: u32,
},
StaleGeneration {
kind: SemanticHandleKind,
slot: u32,
presented: u64,
current: u64,
},
InactiveHandle {
kind: SemanticHandleKind,
slot: u32,
},
NotReachable {
kind: SemanticHandleKind,
slot: u32,
},
CapacityExceeded {
kind: SemanticHandleKind,
capacity: u32,
},
GenerationExhausted {
kind: SemanticHandleKind,
slot: u32,
},
CorruptLineage {
detail: String,
},
KernelUnavailable,
Runtime {
operation: &'static str,
detail: String,
},
DeviceControlled,
Poisoned,
}Expand description
Typed failures from semantic owner and device lifecycle validation.
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.
InvalidCapacity
InvalidInput
ForeignHandle
Fields
§
kind: SemanticHandleKindSlotOutOfRange
StaleGeneration
InactiveHandle
NotReachable
CapacityExceeded
GenerationExhausted
CorruptLineage
Runtime
DeviceControlled
Poisoned
Trait Implementations§
Source§impl Clone for SemanticHypergraphError
impl Clone for SemanticHypergraphError
Source§fn clone(&self) -> SemanticHypergraphError
fn clone(&self) -> SemanticHypergraphError
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 SemanticHypergraphError
impl Debug for SemanticHypergraphError
Source§impl Display for SemanticHypergraphError
impl Display for SemanticHypergraphError
impl Eq for SemanticHypergraphError
Source§impl Error for SemanticHypergraphError
impl Error for SemanticHypergraphError
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 SemanticHypergraphError
impl PartialEq for SemanticHypergraphError
impl StructuralPartialEq for SemanticHypergraphError
Auto Trait Implementations§
impl Freeze for SemanticHypergraphError
impl RefUnwindSafe for SemanticHypergraphError
impl Send for SemanticHypergraphError
impl Sync for SemanticHypergraphError
impl Unpin for SemanticHypergraphError
impl UnsafeUnpin for SemanticHypergraphError
impl UnwindSafe for SemanticHypergraphError
Blanket Implementations§
impl<T> Allocation for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more