pub enum StreamCheckpointBuildError<S, F> {
Configuration(RustTorchError),
Source {
worker: usize,
source: S,
},
TransformFactory {
worker: usize,
source: F,
},
TransformState {
worker: usize,
source: RustTorchError,
},
WorkerPanic {
worker: usize,
},
}Expand description
Typed stream construction or transactional resume failure.
Variants§
Configuration(RustTorchError)
Static configuration rejection.
Source
Source creation or read-only state validation failed.
TransformFactory
Transform creation failed.
TransformState
Transform state validation failed.
WorkerPanic
Initialization or checkpoint callback panicked.
Trait Implementations§
Source§impl<S, F> Display for StreamCheckpointBuildError<S, F>
impl<S, F> Display for StreamCheckpointBuildError<S, F>
Source§impl<S, F> Error for StreamCheckpointBuildError<S, F>
impl<S, F> Error for StreamCheckpointBuildError<S, F>
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<S, F> From<RustTorchError> for StreamCheckpointBuildError<S, F>
impl<S, F> From<RustTorchError> for StreamCheckpointBuildError<S, F>
Source§fn from(source: RustTorchError) -> Self
fn from(source: RustTorchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S, F> !RefUnwindSafe for StreamCheckpointBuildError<S, F>
impl<S, F> !UnwindSafe for StreamCheckpointBuildError<S, F>
impl<S, F> Freeze for StreamCheckpointBuildError<S, F>
impl<S, F> Send for StreamCheckpointBuildError<S, F>
impl<S, F> Sync for StreamCheckpointBuildError<S, F>
impl<S, F> Unpin for StreamCheckpointBuildError<S, F>
impl<S, F> UnsafeUnpin for StreamCheckpointBuildError<S, F>where
S: UnsafeUnpin,
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