pub enum NotebookError {
Config {
source: Error,
},
InvalidBind {
addr: String,
source: AddrParseError,
},
Io(Error),
Spawn {
program: PathBuf,
source: Error,
},
StartupTimeout {
addr: SocketAddr,
},
PortProbe {
bind: SocketAddr,
source: Error,
},
PythonUnavailable(String),
Provisioning(String),
}Expand description
Failure provisioning, starting, or supervising the notebook sidecar.
Variants§
Config
The notebooks.toml config file could not be parsed.
Fields
§
source: ErrorUnderlying parse failure.
InvalidBind
notebooks.bind could not be parsed as a socket address.
Io(Error)
Sidecar filesystem work (dirs, generated config) failed.
Spawn
The sidecar process could not be spawned.
Fields
StartupTimeout
The sidecar never answered GET /api in time (fresh start).
Fields
§
addr: SocketAddrLoopback address the sidecar was expected on.
PortProbe
No free loopback port could be probed for the sidecar.
Fields
§
bind: SocketAddrBind address whose ephemeral pool was probed.
No usable Python interpreter for the sidecar.
Provisioning(String)
venv creation or pip install failed.
Trait Implementations§
Source§impl Debug for NotebookError
impl Debug for NotebookError
Source§impl Display for NotebookError
impl Display for NotebookError
Source§impl Error for NotebookError
impl Error for NotebookError
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()
Source§impl From<Error> for NotebookError
impl From<Error> for NotebookError
Auto Trait Implementations§
impl Freeze for NotebookError
impl !RefUnwindSafe for NotebookError
impl Send for NotebookError
impl Sync for NotebookError
impl Unpin for NotebookError
impl UnsafeUnpin for NotebookError
impl !UnwindSafe for NotebookError
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