Enum quic_rpc::server::RpcServerError
source · pub enum RpcServerError<C: ChannelTypes> {
AcceptBiError(C::AcceptBiError),
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§
AcceptBiError(C::AcceptBiError)
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: ChannelTypes> Debug for RpcServerError<C>
impl<C: ChannelTypes> Debug for RpcServerError<C>
source§impl<C: ChannelTypes> Display for RpcServerError<C>
impl<C: ChannelTypes> Display for RpcServerError<C>
source§impl<C: ChannelTypes> Error for RpcServerError<C>
impl<C: ChannelTypes> 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()