#[non_exhaustive]pub enum BufferAccessError {
Show 17 variants
Device(DeviceError),
Failed,
DestroyedResource(DestroyedResourceError),
AlreadyMapped,
MapAlreadyPending,
MissingBufferUsage(MissingBufferUsageError),
NotMapped,
UnalignedRange,
UnalignedOffset {
offset: BufferAddress,
},
UnalignedRangeSize {
range_size: BufferAddress,
},
OutOfBoundsStartOffsetUnderrun {
index: BufferAddress,
min: BufferAddress,
},
OutOfBoundsStartOffsetOverrun {
index: BufferAddress,
max: BufferAddress,
},
OutOfBoundsEndOffsetOverrun {
index: BufferAddress,
size: BufferAddress,
max: BufferAddress,
},
MapAborted,
InvalidResource(InvalidResourceError),
MapStartOffsetOverrun {
offset: BufferAddress,
buffer_size: BufferAddress,
},
MapEndOffsetOverrun {
offset: BufferAddress,
size: BufferAddress,
buffer_size: BufferAddress,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Device(DeviceError)
Failed
DestroyedResource(DestroyedResourceError)
AlreadyMapped
MapAlreadyPending
MissingBufferUsage(MissingBufferUsageError)
NotMapped
UnalignedRange
UnalignedOffset
Fields
§
offset: BufferAddressUnalignedRangeSize
Fields
§
range_size: BufferAddressOutOfBoundsStartOffsetUnderrun
OutOfBoundsStartOffsetOverrun
OutOfBoundsEndOffsetOverrun
MapAborted
InvalidResource(InvalidResourceError)
MapStartOffsetOverrun
MapEndOffsetOverrun
Trait Implementations§
Source§impl Clone for BufferAccessError
impl Clone for BufferAccessError
Source§fn clone(&self) -> BufferAccessError
fn clone(&self) -> BufferAccessError
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 BufferAccessError
impl Debug for BufferAccessError
Source§impl<'de> Deserialize<'de> for BufferAccessError
impl<'de> Deserialize<'de> for BufferAccessError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BufferAccessError
impl Display for BufferAccessError
Source§impl Error for BufferAccessError
impl Error for BufferAccessError
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 From<BufferAccessError> for CreateBufferError
impl From<BufferAccessError> for CreateBufferError
Source§fn from(source: BufferAccessError) -> Self
fn from(source: BufferAccessError) -> Self
Converts to this type from the input type.
Source§impl From<BufferAccessError> for QueueSubmitError
impl From<BufferAccessError> for QueueSubmitError
Source§fn from(source: BufferAccessError) -> Self
fn from(source: BufferAccessError) -> Self
Converts to this type from the input type.
Source§impl From<DestroyedResourceError> for BufferAccessError
impl From<DestroyedResourceError> for BufferAccessError
Source§fn from(source: DestroyedResourceError) -> Self
fn from(source: DestroyedResourceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for BufferAccessError
impl From<DeviceError> for BufferAccessError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for BufferAccessError
impl From<InvalidResourceError> for BufferAccessError
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingBufferUsageError> for BufferAccessError
impl From<MissingBufferUsageError> for BufferAccessError
Source§fn from(source: MissingBufferUsageError) -> Self
fn from(source: MissingBufferUsageError) -> Self
Converts to this type from the input type.
Source§impl Serialize for BufferAccessError
impl Serialize for BufferAccessError
Source§impl WebGpuError for BufferAccessError
impl WebGpuError for BufferAccessError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU [
ErrorType].Auto Trait Implementations§
impl Freeze for BufferAccessError
impl RefUnwindSafe for BufferAccessError
impl Send for BufferAccessError
impl Sync for BufferAccessError
impl Unpin for BufferAccessError
impl UnwindSafe for BufferAccessError
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more