pub enum SslError {
Show 17 variants
DimensionMismatch {
expected: usize,
got: usize,
},
EmptyInput,
InvalidTemperature {
temp: f32,
},
InvalidMomentum {
momentum: f32,
},
InvalidMaskRatio {
ratio: f32,
},
InvalidNumCrops,
InvalidLossWeight {
weight: f32,
},
QueueCapacityTooSmall,
QueueEmpty,
NumPrototypesTooSmall,
SinkhornDiverged {
iters: usize,
},
InvalidFeatureDim,
BatchTooSmall,
NanEncountered {
location: &'static str,
},
InvalidProjectorDim,
InvalidParameter {
name: String,
reason: String,
},
Internal(String),
}Expand description
All errors that can be returned from oxicuda-ssl.
Variants§
DimensionMismatch
EmptyInput
InvalidTemperature
InvalidMomentum
InvalidMaskRatio
InvalidNumCrops
InvalidLossWeight
QueueCapacityTooSmall
QueueEmpty
NumPrototypesTooSmall
SinkhornDiverged
InvalidFeatureDim
BatchTooSmall
NanEncountered
InvalidProjectorDim
InvalidParameter
Internal(String)
Trait Implementations§
Source§impl Error for SslError
impl Error for SslError
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()
impl StructuralPartialEq for SslError
Auto Trait Implementations§
impl Freeze for SslError
impl RefUnwindSafe for SslError
impl Send for SslError
impl Sync for SslError
impl Unpin for SslError
impl UnsafeUnpin for SslError
impl UnwindSafe for SslError
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