Enum vulkano::query::GetResultsError
source · pub enum GetResultsError {
DeviceLost,
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
BufferTooSmall {
required_len: DeviceSize,
actual_len: DeviceSize,
},
InvalidFlags,
}
Expand description
Error that can happen when calling QueriesRange::get_results
.
Variants§
DeviceLost
The connection to the device has been lost.
OomError(OomError)
Not enough memory.
RequirementNotMet
BufferTooSmall
Fields
§
required_len: DeviceSize
Required number of elements in the buffer.
§
actual_len: DeviceSize
Actual number of elements in the buffer.
The buffer is too small for the operation.
InvalidFlags
The provided flags are not allowed for this type of query.
Trait Implementations§
source§impl Clone for GetResultsError
impl Clone for GetResultsError
source§fn clone(&self) -> GetResultsError
fn clone(&self) -> GetResultsError
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 Debug for GetResultsError
impl Debug for GetResultsError
source§impl Display for GetResultsError
impl Display for GetResultsError
source§impl Error for GetResultsError
impl Error for GetResultsError
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()
source§impl From<OomError> for GetResultsError
impl From<OomError> for GetResultsError
source§impl From<VulkanError> for GetResultsError
impl From<VulkanError> for GetResultsError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.