pub enum LaunchError {
CompilationError(CompilationError),
OutOfMemory {
reason: String,
backtrace: BackTrace,
},
Unknown {
reason: String,
backtrace: BackTrace,
},
IoError(IoError),
}Expand description
Error that can happen when calling [ComputeServer::execute];
§Notes
Not all errors are going to be catched when calling [ComputeServer::execute] only the one that won’t block the compute queue.
Variants§
CompilationError(CompilationError)
The given kernel can’t be compiled.
OutOfMemory
The server is out of memory.
Fields
Unknown
Unknown launch error.
Fields
IoError(IoError)
Can’t launch because of an IO Error.
Trait Implementations§
Source§impl Clone for LaunchError
impl Clone for LaunchError
Source§fn clone(&self) -> LaunchError
fn clone(&self) -> LaunchError
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 LaunchError
impl Debug for LaunchError
Source§impl<'de> Deserialize<'de> for LaunchError
impl<'de> Deserialize<'de> for LaunchError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LaunchError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LaunchError
impl Display for LaunchError
Source§impl Error for LaunchError
impl Error for LaunchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CompilationError> for LaunchError
impl From<CompilationError> for LaunchError
Source§fn from(source: CompilationError) -> LaunchError
fn from(source: CompilationError) -> LaunchError
Converts to this type from the input type.
Source§impl From<IoError> for LaunchError
impl From<IoError> for LaunchError
Source§fn from(source: IoError) -> LaunchError
fn from(source: IoError) -> LaunchError
Converts to this type from the input type.
Source§impl From<LaunchError> for AutotuneError
impl From<LaunchError> for AutotuneError
Source§fn from(value: LaunchError) -> AutotuneError
fn from(value: LaunchError) -> AutotuneError
Converts to this type from the input type.
Source§impl From<LaunchError> for ProfileError
impl From<LaunchError> for ProfileError
Source§fn from(source: LaunchError) -> ProfileError
fn from(source: LaunchError) -> ProfileError
Converts to this type from the input type.
Source§impl Serialize for LaunchError
impl Serialize for LaunchError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LaunchError
impl RefUnwindSafe for LaunchError
impl Send for LaunchError
impl Sync for LaunchError
impl Unpin for LaunchError
impl UnwindSafe for LaunchError
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