Enum mqtt::control::variable_header::ConnectReturnCode
source · pub enum ConnectReturnCode {
ConnectionAccepted,
UnacceptableProtocolVersion,
IdentifierRejected,
ServiceUnavailable,
BadUserNameOrPassword,
NotAuthorized,
Reserved(u8),
}
Expand description
Return code for CONNACK
packet
Variants§
ConnectionAccepted
UnacceptableProtocolVersion
IdentifierRejected
BadUserNameOrPassword
NotAuthorized
Reserved(u8)
Implementations§
Trait Implementations§
source§impl Clone for ConnectReturnCode
impl Clone for ConnectReturnCode
source§fn clone(&self) -> ConnectReturnCode
fn clone(&self) -> ConnectReturnCode
Returns a copy 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 ConnectReturnCode
impl Debug for ConnectReturnCode
source§impl Decodable for ConnectReturnCode
impl Decodable for ConnectReturnCode
type Error = VariableHeaderError
type Cond = ()
source§fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ConnectReturnCode, VariableHeaderError>
fn decode_with<R: Read>( reader: &mut R, _rest: () ) -> Result<ConnectReturnCode, VariableHeaderError>
Decodes object with additional data (or hints)
source§impl Encodable for ConnectReturnCode
impl Encodable for ConnectReturnCode
source§impl PartialEq for ConnectReturnCode
impl PartialEq for ConnectReturnCode
source§fn eq(&self, other: &ConnectReturnCode) -> bool
fn eq(&self, other: &ConnectReturnCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectReturnCode
impl Eq for ConnectReturnCode
impl StructuralPartialEq for ConnectReturnCode
Auto Trait Implementations§
impl Freeze for ConnectReturnCode
impl RefUnwindSafe for ConnectReturnCode
impl Send for ConnectReturnCode
impl Sync for ConnectReturnCode
impl Unpin for ConnectReturnCode
impl UnwindSafe for ConnectReturnCode
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