pub struct PostgresToolError {
pub tool: &'static str,
pub exit_code: Option<i32>,
pub stdout: String,
pub stderr: String,
/* private fields */
}Expand description
Failure returned by a PostgreSQL frontend program.
Fields§
§tool: &'static strProgram name (pg_dump or psql).
exit_code: Option<i32>Process exit status when the program started.
stdout: StringUTF-8 standard output captured before failure.
stderr: StringUTF-8 standard error captured before failure.
Trait Implementations§
Source§impl Debug for PostgresToolError
impl Debug for PostgresToolError
Source§impl Display for PostgresToolError
impl Display for PostgresToolError
Source§impl Error for PostgresToolError
impl Error for PostgresToolError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 PostgresToolError
impl !UnwindSafe for PostgresToolError
impl Freeze for PostgresToolError
impl Send for PostgresToolError
impl Sync for PostgresToolError
impl Unpin for PostgresToolError
impl UnsafeUnpin for PostgresToolError
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