pub enum AppServerTransportError {
Io {
context: String,
source: Error,
},
ProcessTerminated,
Timeout {
response_id: String,
timeout_seconds: u64,
},
}Expand description
Typed error returned by shared app-server transport operations.
Covers the low-level stdio communication failures that can occur when writing JSON-RPC payloads to a child process or reading responses from its stdout stream.
Variants§
Io
An IO error occurred during app-server stdio communication.
Fields
ProcessTerminated
The app-server process terminated before sending the expected response.
Timeout
Timed out waiting for a JSON-RPC response from the app-server.
Trait Implementations§
Source§impl Debug for AppServerTransportError
impl Debug for AppServerTransportError
Source§impl Display for AppServerTransportError
impl Display for AppServerTransportError
Source§impl Error for AppServerTransportError
impl Error for AppServerTransportError
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<AppServerTransportError> for AppServerError
impl From<AppServerTransportError> for AppServerError
Source§fn from(source: AppServerTransportError) -> Self
fn from(source: AppServerTransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AppServerTransportError
impl !UnwindSafe for AppServerTransportError
impl Freeze for AppServerTransportError
impl Send for AppServerTransportError
impl Sync for AppServerTransportError
impl Unpin for AppServerTransportError
impl UnsafeUnpin for AppServerTransportError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.