pub enum PalaceError {
Disabled,
Spawn(String),
Timeout(Duration),
Exit(String),
NonJson,
OutputTooLarge(usize),
Busy,
}Expand description
Why a palace call failed. Messages are safe to return to callers (no stderr/stdout contents).
Variants§
Disabled
No palace runner is configured (the default; see the module docs).
Spawn(String)
The palace process could not be started.
Timeout(Duration)
The call exceeded its timeout and was killed.
Exit(String)
Non-zero exit status.
NonJson
Stdout held no parseable JSON object.
OutputTooLarge(usize)
Stdout exceeded the size cap.
Busy
Too many palace calls in flight.
Trait Implementations§
Source§impl Debug for PalaceError
impl Debug for PalaceError
Source§impl Display for PalaceError
impl Display for PalaceError
Source§impl Error for PalaceError
impl Error for PalaceError
1.30.0 · 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 Freeze for PalaceError
impl RefUnwindSafe for PalaceError
impl Send for PalaceError
impl Sync for PalaceError
impl Unpin for PalaceError
impl UnsafeUnpin for PalaceError
impl UnwindSafe for PalaceError
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