pub enum TextconError {
Config(String),
TemplateSyntax {
offset: u64,
message: String,
},
SandboxDenied {
path: PathBuf,
reason: String,
},
UnsupportedFileType {
path: PathBuf,
},
PathIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
Input {
name: String,
source: Error,
},
Output(Error),
Ignore {
origin: String,
message: String,
},
}Expand description
Errors returned by the streaming textcon engine.
Variants§
Config(String)
Invalid engine or selection configuration.
TemplateSyntax
Invalid reference syntax in the input template.
SandboxDenied
A reference was denied by the configured sandbox.
UnsupportedFileType
A path had an unsupported filesystem type.
PathIo
A contextual filesystem operation failed.
Input
Reading a generic input stream failed.
Output(Error)
Writing the caller-provided output stream failed.
Ignore
An ignore rule could not be parsed.
Implementations§
Source§impl TextconError
impl TextconError
Sourcepub fn is_output_broken_pipe(&self) -> bool
pub fn is_output_broken_pipe(&self) -> bool
Returns true only for a broken caller-provided output stream.
Trait Implementations§
Source§impl Debug for TextconError
impl Debug for TextconError
Source§impl Display for TextconError
impl Display for TextconError
Source§impl Error for TextconError
impl Error for TextconError
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 TextconError
impl !UnwindSafe for TextconError
impl Forget for TextconError
impl Freeze for TextconError
impl Move for TextconError
impl Send for TextconError
impl Sync for TextconError
impl Unpin for TextconError
impl UnsafeUnpin for TextconError
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