#[non_exhaustive]pub enum AgentEventError {
MissingField(String),
InvalidFieldType(String),
UnknownMethod(String),
}Expand description
Errors that can occur when parsing a JsonRpcNotification into an [AgentEventAny].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingField(String)
A required field was missing from the JSON-RPC params.
InvalidFieldType(String)
A field had an unexpected type.
UnknownMethod(String)
The JSON-RPC method name is not recognized.
Trait Implementations§
Source§impl Clone for AgentEventError
impl Clone for AgentEventError
Source§fn clone(&self) -> AgentEventError
fn clone(&self) -> AgentEventError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentEventError
impl Debug for AgentEventError
Source§impl Display for AgentEventError
impl Display for AgentEventError
Source§impl Error for AgentEventError
impl Error for AgentEventError
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 AgentEventError
impl RefUnwindSafe for AgentEventError
impl Send for AgentEventError
impl Sync for AgentEventError
impl Unpin for AgentEventError
impl UnsafeUnpin for AgentEventError
impl UnwindSafe for AgentEventError
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