Enum blaze_rs::event::EventStatus
source · #[repr(i32)]pub enum EventStatus {
Queued,
Submitted,
Running,
Complete,
}
Expand description
An event’s status
Variants§
Queued
Command has been enqueued in the command-queue.
Submitted
Enqueued command has been submitted by the host to the device associated with the command-queue.
Running
Device is currently executing this command.
Complete
The command has completed.
Implementations§
source§impl EventStatus
impl EventStatus
pub const fn has_completed(&self) -> bool
pub const fn is_running(&self) -> bool
pub const fn is_submitted(&self) -> bool
pub const fn is_queued(&self) -> bool
pub const fn has_started_running(&self) -> bool
pub const fn has_submitted(&self) -> bool
Trait Implementations§
source§impl Clone for EventStatus
impl Clone for EventStatus
source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
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 EventStatus
impl Debug for EventStatus
source§impl Hash for EventStatus
impl Hash for EventStatus
source§impl Into<i32> for EventStatus
impl Into<i32> for EventStatus
source§impl Ord for EventStatus
impl Ord for EventStatus
source§fn cmp(&self, other: &EventStatus) -> Ordering
fn cmp(&self, other: &EventStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EventStatus> for EventStatus
impl PartialEq<EventStatus> for EventStatus
source§fn eq(&self, other: &EventStatus) -> bool
fn eq(&self, other: &EventStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EventStatus> for EventStatus
impl PartialOrd<EventStatus> for EventStatus
source§fn partial_cmp(&self, other: &EventStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &EventStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for EventStatus
impl TryFrom<i32> for EventStatus
impl Copy for EventStatus
impl Eq for EventStatus
impl StructuralEq for EventStatus
impl StructuralPartialEq for EventStatus
Auto Trait Implementations§
impl RefUnwindSafe for EventStatus
impl Send for EventStatus
impl Sync for EventStatus
impl Unpin for EventStatus
impl UnwindSafe for EventStatus
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