pub enum RpcServerError<E> {
BufferOverflow,
IoError(E),
ParseError,
TooManyHandlers,
TimeoutError,
}
Expand description
Type for errors returned by the RPC server
Variants§
BufferOverflow
Buffer overflow error, e.g., message too large.
IoError(E)
IO error, e.g., read/write error.
ParseError
Parse error, e.g., invalid JSON.
TooManyHandlers
Too many registered handlers
The maximum number of handlers is defined by MAX_HANDLERS
.
TimeoutError
Timeout error The operation took longer than the specified timeout.
Trait Implementations§
Source§impl<E: Clone> Clone for RpcServerError<E>
impl<E: Clone> Clone for RpcServerError<E>
Source§fn clone(&self) -> RpcServerError<E>
fn clone(&self) -> RpcServerError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug> Debug for RpcServerError<E>
impl<E: Debug> Debug for RpcServerError<E>
Source§impl<E: PartialEq> PartialEq for RpcServerError<E>
impl<E: PartialEq> PartialEq for RpcServerError<E>
impl<E: Eq> Eq for RpcServerError<E>
impl<E> StructuralPartialEq for RpcServerError<E>
Auto Trait Implementations§
impl<E> Freeze for RpcServerError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RpcServerError<E>where
E: RefUnwindSafe,
impl<E> Send for RpcServerError<E>where
E: Send,
impl<E> Sync for RpcServerError<E>where
E: Sync,
impl<E> Unpin for RpcServerError<E>where
E: Unpin,
impl<E> UnwindSafe for RpcServerError<E>where
E: UnwindSafe,
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