pub enum BufError {
NotInstalled,
CommandFailed {
exit_code: i32,
stderr: String,
},
IoError(String),
ConfigError(String),
}Expand description
Errors from buf CLI operations.
Variants§
NotInstalled
Buf CLI not found in PATH
CommandFailed
Buf command failed with exit code
IoError(String)
IO error
ConfigError(String)
Configuration error
Trait Implementations§
Source§impl Error for BufError
impl Error for BufError
1.30.0 · 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 Forget for BufError
impl Freeze for BufError
impl Move for BufError
impl RefUnwindSafe for BufError
impl Send for BufErrorwhere
RawVecInner: Send,
impl Sync for BufErrorwhere
RawVecInner: Sync,
impl Unpin for BufError
impl UnsafeUnpin for BufError
impl UnwindSafe for BufErrorwhere
RawVecInner: UnwindSafe,
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