pub enum ServerConnectError {
UnacceptableProtocolVersion,
IdentifierRejected,
ServerUnavailable,
BadUserNameOrPassword,
NotAuthorized,
Unknown(u8),
ProtocolError,
}Expand description
An enumeration of all the possible error codes returned by
the broker in response to the client’s CONNECT packet.
Variants§
UnacceptableProtocolVersion
The broker refused our request for the MQTT v3 protocol.
IdentifierRejected
The identifier specified by the developer has been was not allowed by the broker.
The broker responded but is currently unavailable.
BadUserNameOrPassword
The username and/or password data is malformed.
NotAuthorized
The client is not authorized to connect.
Unknown(u8)
The broker returned an error code that is reserved for future use. The specific code used by the broker can be known by accessing this variant’s value.
ProtocolError
This is not an official MQTT v3 error and is specific to this library. It usually means that the server the developer is trying to connect to is probably not an MQTT broker.
Trait Implementations§
Source§impl Clone for ServerConnectError
impl Clone for ServerConnectError
Source§fn clone(&self) -> ServerConnectError
fn clone(&self) -> ServerConnectError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConnectError
impl Debug for ServerConnectError
Source§impl PartialEq for ServerConnectError
impl PartialEq for ServerConnectError
impl Copy for ServerConnectError
impl Eq for ServerConnectError
impl StructuralPartialEq for ServerConnectError
Auto Trait Implementations§
impl Freeze for ServerConnectError
impl RefUnwindSafe for ServerConnectError
impl Send for ServerConnectError
impl Sync for ServerConnectError
impl Unpin for ServerConnectError
impl UnwindSafe for ServerConnectError
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