pub enum WampError {
UnknownError(String),
ConnectionError(TransportError),
SerializationError(SerializerError),
InvalidUri(ParseError),
NoHostInUri,
ProtocolError(String),
ClientDied,
RequestIdCollision,
ServerError(String, WampDict),
}
Expand description
Types of errors a WAMP client can encounter
Variants§
UnknownError(String)
ConnectionError(TransportError)
Error with the connection
SerializationError(SerializerError)
Error with serialization
InvalidUri(ParseError)
WAMP uri is invalid
NoHostInUri
Server uri is invalid
ProtocolError(String)
The WAMP protocol was not respected by the peer
ClientDied
The client has been dropped while the event loop was running
RequestIdCollision
A randomly generated ID was not unique
ServerError(String, WampDict)
The server sent us an Error message
Trait Implementations§
Source§impl Error for WampError
impl Error for WampError
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 WampError
impl RefUnwindSafe for WampError
impl Send for WampError
impl Sync for WampError
impl Unpin for WampError
impl UnwindSafe for WampError
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