pub enum ResourceError {
InvalidName,
OutOfMemory,
BadResourceType,
BadArg,
InitializationFailed,
ResourceNotFound,
NotSupported,
}Expand description
Errors that can occur during resource operations
Variants§
InvalidName
Resource name is invalid (empty or too long)
OutOfMemory
Memory allocation failed
BadResourceType
Invalid resource type pointer
BadArg
Invalid argument provided
InitializationFailed
Resource type initialization failed
ResourceNotFound
Resource not found or wrong type
NotSupported
Operation not supported
Trait Implementations§
Source§impl Clone for ResourceError
impl Clone for ResourceError
Source§fn clone(&self) -> ResourceError
fn clone(&self) -> ResourceError
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 ResourceError
impl Debug for ResourceError
Source§impl From<ResourceError> for NifError
impl From<ResourceError> for NifError
Source§fn from(err: ResourceError) -> Self
fn from(err: ResourceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResourceError
impl PartialEq for ResourceError
impl StructuralPartialEq for ResourceError
Auto Trait Implementations§
impl Freeze for ResourceError
impl RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl UnwindSafe for ResourceError
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