pub enum CorsaError {
Io(Error),
Json(Error),
Base64(DecodeError),
Rpc(RpcResponseError),
Protocol(CompactString),
UnexpectedMessage(CompactString),
InvalidHandle(CompactString),
Closed(&'static str),
Unsupported(&'static str),
Join(CompactString),
Timeout(CompactString),
}Expand description
Workspace-wide error type for process, transport, and protocol failures.
Variants§
Io(Error)
Underlying OS or process I/O failure.
Json(Error)
JSON serialization or deserialization failure.
Base64(DecodeError)
Base64 decoding failure for binary JSON payloads.
Rpc(RpcResponseError)
Error returned by the remote JSON-RPC peer.
Protocol(CompactString)
Protocol-level invariant violation or user-facing contract error.
UnexpectedMessage(CompactString)
Message shape did not match what the transport expected.
InvalidHandle(CompactString)
Opaque handle payload could not be parsed.
Closed(&'static str)
Operation could not continue because the underlying resource is closed.
Unsupported(&'static str)
Requested feature or transport is not supported.
Join(CompactString)
Thread/task join failure surfaced as a stable string.
Timeout(CompactString)
Operation did not finish before the configured deadline.
Implementations§
Trait Implementations§
Source§impl Error for TsgoError
impl Error for TsgoError
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<DecodeError> for TsgoError
impl From<DecodeError> for TsgoError
Source§fn from(source: DecodeError) -> TsgoError
fn from(source: DecodeError) -> TsgoError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TsgoError
impl !RefUnwindSafe for TsgoError
impl Send for TsgoError
impl Sync for TsgoError
impl Unpin for TsgoError
impl UnsafeUnpin for TsgoError
impl !UnwindSafe for TsgoError
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more