pub enum DispatchError {
UnknownCommand,
DeserializeError,
SerializeError,
PayloadTooLarge,
ResourceUnavailable,
}Expand description
Errors that can occur during command dispatch.
Variants§
UnknownCommand
No command with the given ID was found in the registry.
DeserializeError
Argument deserialization failed (malformed or truncated payload).
SerializeError
Result serialization failed (output buffer too small).
PayloadTooLarge
The request payload exceeded MAX_PAYLOAD_SIZE.
A #[resource]-annotated argument could not be resolved from the
server’s ResourceRegistry.
Trait Implementations§
Source§impl Clone for DispatchError
impl Clone for DispatchError
Source§fn clone(&self) -> DispatchError
fn clone(&self) -> DispatchError
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 DispatchError
impl Debug for DispatchError
Source§impl PartialEq for DispatchError
impl PartialEq for DispatchError
Source§fn eq(&self, other: &DispatchError) -> bool
fn eq(&self, other: &DispatchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DispatchError
impl Eq for DispatchError
impl StructuralPartialEq for DispatchError
Auto Trait Implementations§
impl Freeze for DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl UnwindSafe for DispatchError
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