pub enum CliError {
Show 13 variants
UnknownStock {
kind: &'static str,
id: String,
},
InvalidNumber {
flag: &'static str,
value: f64,
expected: &'static str,
},
CreateDir {
path: PathBuf,
source: Error,
},
Raw {
path: PathBuf,
message: String,
},
Read {
path: PathBuf,
source: IoError,
},
Film {
path: PathBuf,
message: String,
},
Stock {
path: PathBuf,
message: String,
},
Dictionary {
path: PathBuf,
message: String,
},
Gpu {
message: String,
},
Camera {
path: PathBuf,
message: String,
},
Lut {
path: PathBuf,
message: String,
},
Contact {
message: String,
},
Write {
path: PathBuf,
source: IoError,
},
}Expand description
Everything the model can fail at.
Variants§
UnknownStock
The requested stock id is not compiled in.
InvalidNumber
A numeric flag received a value outside its domain.
Fields
CreateDir
The output directory could not be created.
Raw
A camera raw file could not be decoded.
Read
The input could not be decoded.
Film
A .kalofilm file could not be read or verified.
Stock
A stock file could not be read, parsed or checked.
Dictionary
The dictionary could not be read.
Gpu
The build has no GPU backend, or the one it has cannot run this render.
Camera
A camera sensitivity file could not be read.
Lut
A baked table could not be read or written.
Contact
A contact proof could not be made, or its record written.
Write
The output could not be encoded.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more