Enum wgpu::MaintainResult
pub enum MaintainResult {
SubmissionQueueEmpty,
Ok,
}
Expand description
Result of a maintain operation.
Variants§
SubmissionQueueEmpty
There are no active submissions in flight as of the beginning of the poll call. Other submissions may have been queued on other threads at the same time.
This implies that the given poll is complete.
Ok
More information coming soon https://github.com/gfx-rs/wgpu/pull/5012
Implementations§
§impl MaintainResult
impl MaintainResult
pub fn is_queue_empty(&self) -> bool
pub fn is_queue_empty(&self) -> bool
Returns true if the result is Self::SubmissionQueueEmpty
`.
pub fn panic_on_timeout(self)
pub fn panic_on_timeout(self)
Panics if the MaintainResult is not Ok.
Auto Trait Implementations§
impl RefUnwindSafe for MaintainResult
impl Send for MaintainResult
impl Sync for MaintainResult
impl Unpin for MaintainResult
impl UnwindSafe for MaintainResult
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