pub enum CreationError<E> {
Create(E),
Allocate(HeapsError),
Bind(BindError),
}
Expand description
Error creating a resource.
Variants§
Create(E)
Failed to create an object.
Allocate(HeapsError)
Failed to allocate memory.
Bind(BindError)
Failed to bind object memory.
Trait Implementations§
Source§impl<E: Clone> Clone for CreationError<E>
impl<E: Clone> Clone for CreationError<E>
Source§fn clone(&self) -> CreationError<E>
fn clone(&self) -> CreationError<E>
Returns a copy 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<E: Debug> Debug for CreationError<E>
impl<E: Debug> Debug for CreationError<E>
Source§impl<E> Display for CreationError<E>where
E: Debug,
impl<E> Display for CreationError<E>where
E: Debug,
Source§impl<E> Error for CreationError<E>where
E: Error + 'static,
impl<E> Error for CreationError<E>where
E: Error + 'static,
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<E: PartialEq> PartialEq for CreationError<E>
impl<E: PartialEq> PartialEq for CreationError<E>
impl<E> StructuralPartialEq for CreationError<E>
Auto Trait Implementations§
impl<E> Freeze for CreationError<E>where
E: Freeze,
impl<E> RefUnwindSafe for CreationError<E>where
E: RefUnwindSafe,
impl<E> Send for CreationError<E>where
E: Send,
impl<E> Sync for CreationError<E>where
E: Sync,
impl<E> Unpin for CreationError<E>where
E: Unpin,
impl<E> UnwindSafe for CreationError<E>where
E: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)