pub enum ClientError {
FeatureUnavailable {
feature: Feature,
negotiated: ProtocolVersion,
},
Transport(TransportError),
InputUnresolved {
method: String,
},
TooManyRounds(u32),
}Expand description
Why a client call did not happen.
Variants§
The negotiated session does not have the feature the call needs.
The revision is carried for the same reason the server’s is: “sampling is unavailable” is not something a caller can act on without knowing what was negotiated.
Transport(TransportError)
The request could not be delivered or answered.
InputUnresolved
The server asked for input and nothing could provide it.
Names the callback so a one-shot caller sees what to wire rather than a hang: an agent loop that waits for a person who is not there is worse than one that fails.
TooManyRounds(u32)
The server kept asking for input past the round limit.
Implementations§
Trait Implementations§
Source§impl Clone for ClientError
impl Clone for ClientError
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
impl Eq for ClientError
Source§impl Error for ClientError
impl Error for ClientError
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 ConnectError
impl From<ClientError> for ConnectError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for StdioConnectError
impl From<ClientError> for StdioConnectError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ClientError
impl From<TransportError> for ClientError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClientError
impl PartialEq for ClientError
impl StructuralPartialEq for ClientError
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
impl UnwindSafe for ClientError
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