pub enum ControlClientError {
Client(ClientError),
Wire(WireError),
Peer {
error: ControlError,
response: Box<Message>,
},
InvalidResponse {
response: Box<Message>,
},
UnsupportedMode,
RuntimeChanged,
LegacyRemote {
reply: Box<JsonReply>,
},
InvalidJsonResponse {
reply: Box<JsonReply>,
},
}Expand description
Operation failure distinct from generic routing and application observations.
Variants§
Client(ClientError)
Transport or local admission failure with delivery certainty.
Wire(WireError)
Invalid locally prepared payload.
Peer
Valid structured peer error, retaining original frame and unknown fields.
Fields
§
error: ControlErrorExact decoded public error, including unknown future codes.
InvalidResponse
A response did not match the checked operation’s contract.
UnsupportedMode
Raw/encoded framed access is unavailable in legacy JSON mode.
RuntimeChanged
Verified runtime continuity failed, or fresh discovery changed format.
LegacyRemote
Legacy operation rejection. Diagnostics are not structured retry codes; secret-batch progress is unknown and earlier changes may remain applied.
InvalidJsonResponse
A syntactically valid JSON reply violated a checked operation’s shape.
Implementations§
Trait Implementations§
Source§impl Debug for ControlClientError
impl Debug for ControlClientError
Source§impl Display for ControlClientError
impl Display for ControlClientError
Source§impl Error for ControlClientError
impl Error for ControlClientError
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<ClientError> for ControlClientError
impl From<ClientError> for ControlClientError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlClientError
impl RefUnwindSafe for ControlClientError
impl Send for ControlClientError
impl Sync for ControlClientError
impl Unpin for ControlClientError
impl UnsafeUnpin for ControlClientError
impl UnwindSafe for ControlClientError
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