pub enum BindError {
OutOfMemory(OutOfMemory),
WrongMemory,
OutOfBounds,
}
Expand description
Error binding a resource to memory allocation.
Variants
OutOfMemory(OutOfMemory)
Out of either host or device memory.
WrongMemory
Requested binding to memory that doesn’t support the required operations.
OutOfBounds
Requested binding to an invalid memory.
Trait Implementations
sourceimpl Fail for BindError
impl Fail for BindError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<OutOfMemory> for BindError
impl From<OutOfMemory> for BindError
sourcefn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
impl Copy for BindError
impl Eq for BindError
impl StructuralEq for BindError
impl StructuralPartialEq for BindError
Auto Trait Implementations
impl RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnwindSafe for BindError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more