pub enum NeonError {
NotInstalled,
NotAuthenticated(String),
Failed {
command: String,
stderr: String,
},
Parse {
command: String,
reason: String,
},
Io {
command: String,
source: Error,
},
NoSuchBranch(String),
NotOwned(String),
MissingFunctions {
branch: String,
slugs: Vec<String>,
},
NoStorage(String),
}Available on crate feature
neon only.Expand description
What can go wrong talking to Neon.
Variants§
NotInstalled
Neither neon nor neonctl was found.
NotAuthenticated(String)
The CLI isn’t signed in.
Failed
A command ran and failed.
Parse
A command’s output didn’t parse.
Io
Spawning the CLI failed.
NoSuchBranch(String)
No branch of that name or id in the project.
NotOwned(String)
The branch wasn’t created by trestle, so it is left alone.
MissingFunctions
Functions the plan runs on the branch aren’t deployed there.
NoStorage(String)
The branch has no object storage, but the plan uses it.
Trait Implementations§
Source§impl Error for NeonError
impl Error for NeonError
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 NeonError
impl !UnwindSafe for NeonError
impl Freeze for NeonError
impl Send for NeonError
impl Sync for NeonError
impl Unpin for NeonError
impl UnsafeUnpin for NeonError
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