pub enum ServerError<E> {
Service(E),
Handshake(HandshakeError),
Codec(AmqpCodecError),
Protocol(AmqpProtocolError),
Dispatcher(AmqpDispatcherError),
ControlServiceError,
PublishServiceError,
}Expand description
Errors which can occur when attempting to handle amqp connection.
Variants§
Service(E)
Message handler service error
Handshake(HandshakeError)
Amqp handshake error
Codec(AmqpCodecError)
Amqp codec error
Protocol(AmqpProtocolError)
Amqp protocol error
Dispatcher(AmqpDispatcherError)
Dispatcher error
ControlServiceError
Control service init error
PublishServiceError
Publish service init error
Trait Implementations§
Source§impl<E: Debug> Debug for ServerError<E>
impl<E: Debug> Debug for ServerError<E>
Source§impl<E> Display for ServerError<E>
impl<E> Display for ServerError<E>
Source§impl<E> Error for ServerError<E>
impl<E> Error for ServerError<E>
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()
Source§impl<E> From<AmqpCodecError> for ServerError<E>
impl<E> From<AmqpCodecError> for ServerError<E>
Source§fn from(err: AmqpCodecError) -> Self
fn from(err: AmqpCodecError) -> Self
Converts to this type from the input type.
Source§impl<E> From<AmqpProtocolError> for ServerError<E>
impl<E> From<AmqpProtocolError> for ServerError<E>
Source§fn from(err: AmqpProtocolError) -> Self
fn from(err: AmqpProtocolError) -> Self
Converts to this type from the input type.
Source§impl<E> From<HandshakeError> for ServerError<E>
impl<E> From<HandshakeError> for ServerError<E>
Source§fn from(err: HandshakeError) -> Self
fn from(err: HandshakeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for ServerError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ServerError<E>
impl<E> Send for ServerError<E>where
E: Send,
impl<E> !Sync for ServerError<E>
impl<E> Unpin for ServerError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ServerError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for ServerError<E>
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