pub enum DriftError {
UnsafePath(String),
InvalidTargetName(String),
SymlinkDetected(PathBuf),
FileTooLarge {
path: PathBuf,
size_bytes: u64,
max_bytes: u64,
},
SecretDetected {
location: String,
secret_kind: &'static str,
},
Io {
path: PathBuf,
source: Error,
},
TomlDe {
path: PathBuf,
source: Box<Error>,
},
TomlSer(Box<Error>),
UnsupportedVersion(u32),
UndefinedTemplateVar {
path: PathBuf,
variable: String,
target_name: String,
},
}Variants§
UnsafePath(String)
InvalidTargetName(String)
SymlinkDetected(PathBuf)
FileTooLarge
SecretDetected
Io
TomlDe
TomlSer(Box<Error>)
UnsupportedVersion(u32)
UndefinedTemplateVar
Trait Implementations§
Source§impl Debug for DriftError
impl Debug for DriftError
Source§impl Display for DriftError
impl Display for DriftError
Source§impl Error for DriftError
impl Error for DriftError
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 DriftError
impl !UnwindSafe for DriftError
impl Forget for DriftError
impl Freeze for DriftError
impl Move for DriftError
impl Send for DriftError
impl Sync for DriftError
impl Unpin for DriftError
impl UnsafeUnpin for DriftError
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