pub enum WorkerStdioCodecError {
Io,
EmptyInput,
TruncatedJson,
MalformedJson,
RequestTooLarge,
ResponseTooLarge,
UnsupportedSchemaVersion {
supported: u32,
received: u32,
},
IncompatibleProtocolVersion {
supported: ProtocolVersion,
received: ProtocolVersion,
},
InvalidRequest,
InvalidResponse,
}Expand description
Sanitized failure returned by the bounded stdio codec.
Variants§
Io
Reading or writing the transport failed.
EmptyInput
No JSON document was supplied.
TruncatedJson
The input ended inside a JSON document.
MalformedJson
JSON was malformed or did not match the strict envelope.
RequestTooLarge
The request exceeded its fixed byte bound.
ResponseTooLarge
The response exceeded its fixed byte bound.
UnsupportedSchemaVersion
The stdio envelope schema is unsupported.
IncompatibleProtocolVersion
The remote-build protocol major version is incompatible.
Fields
§
supported: ProtocolVersionSupported protocol version.
§
received: ProtocolVersionReceived protocol version.
InvalidRequest
A decoded request violated a bounded semantic invariant.
InvalidResponse
A decoded response violated a bounded semantic invariant.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerStdioCodecError
impl Clone for WorkerStdioCodecError
impl Copy for WorkerStdioCodecError
Source§impl Debug for WorkerStdioCodecError
impl Debug for WorkerStdioCodecError
Source§impl Display for WorkerStdioCodecError
impl Display for WorkerStdioCodecError
impl Eq for WorkerStdioCodecError
Source§impl Error for WorkerStdioCodecError
impl Error for WorkerStdioCodecError
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()
Source§impl PartialEq for WorkerStdioCodecError
impl PartialEq for WorkerStdioCodecError
impl StructuralPartialEq for WorkerStdioCodecError
Auto Trait Implementations§
impl Freeze for WorkerStdioCodecError
impl RefUnwindSafe for WorkerStdioCodecError
impl Send for WorkerStdioCodecError
impl Sync for WorkerStdioCodecError
impl Unpin for WorkerStdioCodecError
impl UnsafeUnpin for WorkerStdioCodecError
impl UnwindSafe for WorkerStdioCodecError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.