pub enum FindError {
Null(NulError),
NotFound,
NotWritable,
WrongType,
}
Expand description
Errors that can occur when finding DataRefs
Variants§
Null(NulError)
The provided DataRef name contained a null byte
NotFound
The DataRef could not be found
NotWritable
The DataRef is not writable
WrongType
The DataRef does not have the correct type
Trait Implementations§
source§impl Error for FindError
impl Error for FindError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for FindError
impl RefUnwindSafe for FindError
impl Send for FindError
impl Sync for FindError
impl Unpin for FindError
impl UnwindSafe for FindError
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