pub enum WorldModelError {
SocketConnect {
path: String,
source: Error,
},
Timeout {
timeout_s: u64,
},
SerdeJson(Error),
Protocol(String),
VramUnavailable(String),
}Expand description
All errors that can be returned by the OccWorld bridge.
Variants§
SocketConnect
Could not connect to the Unix-domain socket served by the Python OccWorld inference process.
Timeout
A request or response exceeded the 30-second wall-clock deadline.
SerdeJson(Error)
The JSON payload received from the server could not be decoded, or the payload we tried to send could not be encoded.
Protocol(String)
The server sent a response that violates the newline-delimited JSON protocol (e.g. an unexpected EOF before the newline delimiter, or an oversized frame that exceeded the read buffer limit).
The OccWorld inference server reported that GPU VRAM is unavailable (out-of-memory condition on the device side).
Trait Implementations§
Source§impl Debug for WorldModelError
impl Debug for WorldModelError
Source§impl Display for WorldModelError
impl Display for WorldModelError
Source§impl Error for WorldModelError
impl Error for WorldModelError
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 WorldModelError
impl !UnwindSafe for WorldModelError
impl Freeze for WorldModelError
impl Send for WorldModelError
impl Sync for WorldModelError
impl Unpin for WorldModelError
impl UnsafeUnpin for WorldModelError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.