pub enum KeyPathError {
InvalidAccess {
message: String,
},
TypeMismatch {
expected: String,
found: String,
},
RuntimeFailure {
message: String,
},
CollectionError {
message: String,
},
AsyncError {
message: String,
},
ParallelError {
message: String,
},
NetworkError {
message: String,
},
SerializationError {
message: String,
},
}Expand description
Errors that can occur during keypath operations
Variants§
InvalidAccess
Keypath access failed due to invalid path
TypeMismatch
Type mismatch during keypath operation
RuntimeFailure
Runtime failure during keypath operation
CollectionError
Collection operation failed
AsyncError
Async operation failed
ParallelError
Parallel operation failed
NetworkError
Network operation failed
SerializationError
Serialization/deserialization failed
Trait Implementations§
Source§impl Clone for KeyPathError
impl Clone for KeyPathError
Source§fn clone(&self) -> KeyPathError
fn clone(&self) -> KeyPathError
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyPathError
impl Debug for KeyPathError
Source§impl Display for KeyPathError
impl Display for KeyPathError
Source§impl Error for KeyPathError
impl Error for KeyPathError
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 KeyPathError
impl PartialEq for KeyPathError
impl StructuralPartialEq for KeyPathError
Auto Trait Implementations§
impl Freeze for KeyPathError
impl RefUnwindSafe for KeyPathError
impl Send for KeyPathError
impl Sync for KeyPathError
impl Unpin for KeyPathError
impl UnwindSafe for KeyPathError
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<E> IntoKeyPathError for Ewhere
E: Error,
impl<E> IntoKeyPathError for Ewhere
E: Error,
fn into_keypath_error(self) -> KeyPathError
Source§impl<T> KeyPathsOperable for T
impl<T> KeyPathsOperable for T
Source§fn get_at_keypath<'a, V>(
&'a self,
keypath: &'a KeyPaths<Self, V>,
) -> KeyPathResult<&'a V>
fn get_at_keypath<'a, V>( &'a self, keypath: &'a KeyPaths<Self, V>, ) -> KeyPathResult<&'a V>
Get a value at a keypath
Source§fn set_at_keypath<V>(
&mut self,
_keypath: KeyPaths<Self, V>,
_value: V,
) -> KeyPathResult<()>
fn set_at_keypath<V>( &mut self, _keypath: KeyPaths<Self, V>, _value: V, ) -> KeyPathResult<()>
Set a value at a keypath (if the keypath supports mutation)