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
sourceimpl Clone for GetResultsError
impl Clone for GetResultsError
sourcefn clone(&self) -> GetResultsError
fn clone(&self) -> GetResultsError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GetResultsError
impl Debug for GetResultsError
sourceimpl Display for GetResultsError
impl Display for GetResultsError
sourceimpl Error for GetResultsError
impl Error for GetResultsError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<OomError> for GetResultsError
impl From<OomError> for GetResultsError
sourceimpl From<VulkanError> for GetResultsError
impl From<VulkanError> for GetResultsError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<GetResultsError> for GetResultsError
impl PartialEq<GetResultsError> for GetResultsError
sourcefn eq(&self, other: &GetResultsError) -> bool
fn eq(&self, other: &GetResultsError) -> bool
impl Eq for GetResultsError
impl StructuralEq for GetResultsError
impl StructuralPartialEq for GetResultsError
Auto Trait Implementations
impl RefUnwindSafe for GetResultsError
impl Send for GetResultsError
impl Sync for GetResultsError
impl Unpin for GetResultsError
impl UnwindSafe for GetResultsError
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