Enum quic_rpc::server::RpcServerError
source · pub enum RpcServerError<C: ConnectionErrors> {
Accept(C::OpenError),
EarlyClose,
UnexpectedStartMessage,
RecvError(C::RecvError),
SendError(C::SendError),
UnexpectedUpdateMessage,
}
Expand description
Server error. All server DSL methods return a Result
with this error type.
Variants§
Accept(C::OpenError)
Unable to open a new channel
EarlyClose
Recv side for a channel was closed before getting the first message
UnexpectedStartMessage
Got an unexpected first message, e.g. an update message
RecvError(C::RecvError)
Error receiving a message
SendError(C::SendError)
Error sending a response
UnexpectedUpdateMessage
Got an unexpected update message, e.g. a request message or a non-matching update message
Trait Implementations§
source§impl<C: ConnectionErrors> Debug for RpcServerError<C>
impl<C: ConnectionErrors> Debug for RpcServerError<C>
source§impl<C: ConnectionErrors> Display for RpcServerError<C>
impl<C: ConnectionErrors> Display for RpcServerError<C>
source§impl<C: ConnectionErrors> Error for RpcServerError<C>
impl<C: ConnectionErrors> Error for RpcServerError<C>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<C> Freeze for RpcServerError<C>where
<C as ConnectionErrors>::OpenError: Freeze,
<C as ConnectionErrors>::RecvError: Freeze,
<C as ConnectionErrors>::SendError: Freeze,
impl<C> RefUnwindSafe for RpcServerError<C>where
<C as ConnectionErrors>::OpenError: RefUnwindSafe,
<C as ConnectionErrors>::RecvError: RefUnwindSafe,
<C as ConnectionErrors>::SendError: RefUnwindSafe,
impl<C> Send for RpcServerError<C>
impl<C> Sync for RpcServerError<C>
impl<C> Unpin for RpcServerError<C>
impl<C> UnwindSafe for RpcServerError<C>where
<C as ConnectionErrors>::OpenError: UnwindSafe,
<C as ConnectionErrors>::RecvError: UnwindSafe,
<C as ConnectionErrors>::SendError: 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