#[repr(i32)]pub enum WGPUMapAsyncStatus {
Success = 1,
CallbackCancelled = 2,
Error = 3,
Aborted = 4,
}Variants§
Implementations§
Source§impl WGPUMapAsyncStatus
impl WGPUMapAsyncStatus
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Returns true if the enum is WGPUMapAsyncStatus::Success otherwise false
Sourcepub const fn is_callback_cancelled(&self) -> bool
pub const fn is_callback_cancelled(&self) -> bool
Returns true if the enum is WGPUMapAsyncStatus::CallbackCancelled otherwise false
Sourcepub const fn is_error(&self) -> bool
pub const fn is_error(&self) -> bool
Returns true if the enum is WGPUMapAsyncStatus::Error otherwise false
Sourcepub const fn is_aborted(&self) -> bool
pub const fn is_aborted(&self) -> bool
Returns true if the enum is WGPUMapAsyncStatus::Aborted otherwise false
Trait Implementations§
Source§impl Clone for WGPUMapAsyncStatus
impl Clone for WGPUMapAsyncStatus
Source§fn clone(&self) -> WGPUMapAsyncStatus
fn clone(&self) -> WGPUMapAsyncStatus
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 WGPUMapAsyncStatus
impl Debug for WGPUMapAsyncStatus
Source§impl Display for WGPUMapAsyncStatus
impl Display for WGPUMapAsyncStatus
Source§impl<'_derivative_strum> From<&'_derivative_strum WGPUMapAsyncStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum WGPUMapAsyncStatus> for &'static str
Source§fn from(x: &'_derivative_strum WGPUMapAsyncStatus) -> &'static str
fn from(x: &'_derivative_strum WGPUMapAsyncStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<WGPUMapAsyncStatus> for &'static str
impl From<WGPUMapAsyncStatus> for &'static str
Source§fn from(x: WGPUMapAsyncStatus) -> &'static str
fn from(x: WGPUMapAsyncStatus) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for WGPUMapAsyncStatus
impl FromStr for WGPUMapAsyncStatus
Source§impl Hash for WGPUMapAsyncStatus
impl Hash for WGPUMapAsyncStatus
Source§impl IntoEnumIterator for WGPUMapAsyncStatus
impl IntoEnumIterator for WGPUMapAsyncStatus
type Iterator = WGPUMapAsyncStatusIter
fn iter() -> WGPUMapAsyncStatusIter ⓘ
Source§impl PartialEq for WGPUMapAsyncStatus
impl PartialEq for WGPUMapAsyncStatus
Source§impl TryFrom<&str> for WGPUMapAsyncStatus
impl TryFrom<&str> for WGPUMapAsyncStatus
impl Copy for WGPUMapAsyncStatus
impl Eq for WGPUMapAsyncStatus
impl StructuralPartialEq for WGPUMapAsyncStatus
Auto Trait Implementations§
impl Freeze for WGPUMapAsyncStatus
impl RefUnwindSafe for WGPUMapAsyncStatus
impl Send for WGPUMapAsyncStatus
impl Sync for WGPUMapAsyncStatus
impl Unpin for WGPUMapAsyncStatus
impl UnwindSafe for WGPUMapAsyncStatus
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