pub enum OpenCLEncodeError {
InvalidPieces(usize),
InvalidIVs(usize),
InvalidPiecesIVs(usize, usize),
OpenCLError(Cow<'static, str>),
OpenCLDeviceNotFound(i32),
}Expand description
OpenCL encoding errors
Variants§
InvalidPieces(usize)
Pieces argument is invalid, must be multiple of 4096-bytes pieces
InvalidIVs(usize)
IVs argument is invalid, must be multiple of 32-bytes IVs
InvalidPiecesIVs(usize, usize)
Number of pieces should be the same as number of IVs
OpenCLError(Cow<'static, str>)
OpenCL API returned an error code
OpenCLDeviceNotFound(i32)
OpenCL could not find any compatible device on the specified platform 2026 = No devices, 2027 = No Nvidia GPUs, 2028 = No AMD GPUs, 2029 = No Intel GPUs, 2035 = Pinned memory couldn’t be allocated because no Nvidia GPU was found on the system 2036 = There was no previously allocated pinned memory
Trait Implementations§
Source§impl Debug for OpenCLEncodeError
impl Debug for OpenCLEncodeError
Source§impl Display for OpenCLEncodeError
impl Display for OpenCLEncodeError
Source§impl Error for OpenCLEncodeError
impl Error for OpenCLEncodeError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for OpenCLEncodeError
impl RefUnwindSafe for OpenCLEncodeError
impl Send for OpenCLEncodeError
impl Sync for OpenCLEncodeError
impl Unpin for OpenCLEncodeError
impl UnsafeUnpin for OpenCLEncodeError
impl UnwindSafe for OpenCLEncodeError
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