Enum ntex_amqp::server::HandshakeError
source · pub enum HandshakeError {
Codec(AmqpCodecError),
Timeout,
ProtocolNegotiation(ProtocolIdError),
ExpectOpenFrame(AmqpFrame),
Unexpected(Frame),
UnexpectedSaslFrame(Box<SaslFrame>),
UnexpectedSaslBodyFrame(Box<SaslFrameBody>),
UnsupportedSaslMechanism(String),
Sasl(SaslCode),
Disconnected(Option<Error>),
}Expand description
Errors which can occur when attempting to handle amqp handshake.
Variants§
Codec(AmqpCodecError)
Amqp codec error
Timeout
Handshake timeout
ProtocolNegotiation(ProtocolIdError)
Protocol negotiation error
ExpectOpenFrame(AmqpFrame)
Expected open frame
Unexpected(Frame)
UnexpectedSaslFrame(Box<SaslFrame>)
UnexpectedSaslBodyFrame(Box<SaslFrameBody>)
UnsupportedSaslMechanism(String)
Sasl(SaslCode)
Sasl error code
Disconnected(Option<Error>)
Unexpected io error, peer disconnected
Trait Implementations§
source§impl Debug for HandshakeError
impl Debug for HandshakeError
source§impl Display for HandshakeError
impl Display for HandshakeError
source§impl Error for HandshakeError
impl Error for HandshakeError
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()
source§impl From<()> for HandshakeError
impl From<()> for HandshakeError
source§fn from(original: ()) -> HandshakeError
fn from(original: ()) -> HandshakeError
Converts to this type from the input type.
source§impl From<AmqpCodecError> for HandshakeError
impl From<AmqpCodecError> for HandshakeError
source§fn from(original: AmqpCodecError) -> HandshakeError
fn from(original: AmqpCodecError) -> HandshakeError
Converts to this type from the input type.
source§impl From<Box<SaslFrameBody, Global>> for HandshakeError
impl From<Box<SaslFrameBody, Global>> for HandshakeError
source§fn from(original: Box<SaslFrameBody>) -> HandshakeError
fn from(original: Box<SaslFrameBody>) -> HandshakeError
Converts to this type from the input type.
source§impl From<Either<AmqpCodecError, Error>> for HandshakeError
impl From<Either<AmqpCodecError, Error>> for HandshakeError
source§fn from(err: Either<AmqpCodecError, Error>) -> Self
fn from(err: Either<AmqpCodecError, Error>) -> Self
Converts to this type from the input type.
source§impl From<Either<ProtocolIdError, Error>> for HandshakeError
impl From<Either<ProtocolIdError, Error>> for HandshakeError
source§fn from(err: Either<ProtocolIdError, Error>) -> Self
fn from(err: Either<ProtocolIdError, Error>) -> Self
Converts to this type from the input type.
source§impl From<Frame> for HandshakeError
impl From<Frame> for HandshakeError
source§fn from(original: Frame) -> HandshakeError
fn from(original: Frame) -> HandshakeError
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.
source§impl From<ProtocolIdError> for HandshakeError
impl From<ProtocolIdError> for HandshakeError
source§fn from(original: ProtocolIdError) -> HandshakeError
fn from(original: ProtocolIdError) -> HandshakeError
Converts to this type from the input type.
source§impl From<SaslCode> for HandshakeError
impl From<SaslCode> for HandshakeError
source§fn from(original: SaslCode) -> HandshakeError
fn from(original: SaslCode) -> HandshakeError
Converts to this type from the input type.
source§impl From<String> for HandshakeError
impl From<String> for HandshakeError
source§fn from(original: String) -> HandshakeError
fn from(original: String) -> HandshakeError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl !Sync for HandshakeError
impl Unpin for HandshakeError
impl !UnwindSafe for HandshakeError
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