pub enum AmqError {
UnsupportedPlatform,
TcpServerClosed,
TcpServerError(String),
TcpReceiveError(String),
TcpReceiveDataError(String),
TcpSendError(String),
TcpSendDataError(String),
AuthorizationError(String),
}Expand description
Error type for Amq errors.
§Variants
UnsupportedPlatform: Unsupported platform.TcpServerClosed: TCP Server closed the connection.TcpServerError(String): TCP Server error.TcpReceiveError(String): TCP Receive error.TcpReceiveDataError(String): TCP Receive data error.TcpSendError(String): TCP Send error.TcpSendDataError(String): TCP Send data error.AuthorizationError(String): Authorization error.
Variants§
UnsupportedPlatform
TcpServerClosed
TcpServerError(String)
TcpReceiveError(String)
TcpReceiveDataError(String)
TcpSendError(String)
TcpSendDataError(String)
AuthorizationError(String)
Trait Implementations§
Source§impl Error for AmqError
impl Error for AmqError
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()
Auto Trait Implementations§
impl Freeze for AmqError
impl RefUnwindSafe for AmqError
impl Send for AmqError
impl Sync for AmqError
impl Unpin for AmqError
impl UnwindSafe for AmqError
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