pub enum CheckpointBuildError<F> {
Configuration(RustTorchError),
TransformFactory(F),
}Expand description
Resume-build error preserving either a RustTorch validation error or the transform factory’s original error value.
Variants§
Configuration(RustTorchError)
Loader configuration or component validation failed.
TransformFactory(F)
Constructing the one retained serial transform failed.
Trait Implementations§
Source§impl<F: Debug> Debug for CheckpointBuildError<F>
impl<F: Debug> Debug for CheckpointBuildError<F>
Source§impl<F> Display for CheckpointBuildError<F>where
F: Display,
impl<F> Display for CheckpointBuildError<F>where
F: Display,
Source§impl<F> Error for CheckpointBuildError<F>where
F: Error + 'static,
impl<F> Error for CheckpointBuildError<F>where
F: Error + 'static,
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<F> From<RustTorchError> for CheckpointBuildError<F>
impl<F> From<RustTorchError> for CheckpointBuildError<F>
Source§fn from(error: RustTorchError) -> Self
fn from(error: RustTorchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> !RefUnwindSafe for CheckpointBuildError<F>
impl<F> !UnwindSafe for CheckpointBuildError<F>
impl<F> Freeze for CheckpointBuildError<F>where
F: Freeze,
impl<F> Send for CheckpointBuildError<F>where
F: Send,
impl<F> Sync for CheckpointBuildError<F>where
F: Sync,
impl<F> Unpin for CheckpointBuildError<F>where
F: Unpin,
impl<F> UnsafeUnpin for CheckpointBuildError<F>where
F: UnsafeUnpin,
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