pub enum PlatformError {
NoPlatforms,
NoUsableDevices,
NoDefaultDevice,
}
Expand description
An error related to Platform.
Variants§
Trait Implementations§
Source§impl Clone for PlatformError
impl Clone for PlatformError
Source§fn clone(&self) -> PlatformError
fn clone(&self) -> PlatformError
Returns a duplicate 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 PlatformError
impl Debug for PlatformError
Source§impl Display for PlatformError
impl Display for PlatformError
Source§impl Fail for PlatformError
impl Fail for PlatformError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<PlatformError> for Error
impl From<PlatformError> for Error
Source§fn from(err: PlatformError) -> Error
fn from(err: PlatformError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for PlatformError
impl PartialEq for PlatformError
impl Eq for PlatformError
impl StructuralPartialEq for PlatformError
Auto Trait Implementations§
impl Freeze for PlatformError
impl RefUnwindSafe for PlatformError
impl Send for PlatformError
impl Sync for PlatformError
impl Unpin for PlatformError
impl UnwindSafe for PlatformError
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