pub enum RunnerError {
MissingPluginId,
NoBridge,
Connect(ClientError),
SessionLost,
}Expand description
Errors raised while bootstrapping or running a plugin via run_plugin.
Variants§
MissingPluginId
The plugin id positional argument was missing.
NoBridge
--socket / ADOS_PLUGIN_SOCKET or --token / ADOS_PLUGIN_TOKEN was
absent, so there is no host to connect to. Mirrors the Python runner’s
fall-back-to-null-ipc path; here it is an explicit error because a Rust
runtime: rust plugin is always launched with the bridge wired.
Connect(ClientError)
The client failed to connect or handshake.
SessionLost
The plugin host closed this plugin’s session (a plugin-host restart) or
the stream broke. Nothing reconnects it: the restarted host re-mints the
socket and token for a fresh process, so the runner stops and the
binary exits non-zero for its unit’s Restart= to bring it back.
Trait Implementations§
Source§impl Debug for RunnerError
impl Debug for RunnerError
Source§impl Display for RunnerError
impl Display for RunnerError
Source§impl Error for RunnerError
impl Error for RunnerError
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<ClientError> for RunnerError
impl From<ClientError> for RunnerError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerError
impl !UnwindSafe for RunnerError
impl Freeze for RunnerError
impl Send for RunnerError
impl Sync for RunnerError
impl Unpin for RunnerError
impl UnsafeUnpin for RunnerError
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