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
ServiceUnavailable
BadUserNameOrPassword
NotAuthorized
Reserved(u8)
Implementations
Trait Implementations
sourceimpl Clone for ConnectReturnCode
impl Clone for ConnectReturnCode
sourcefn clone(&self) -> ConnectReturnCode
fn clone(&self) -> ConnectReturnCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectReturnCode
impl Debug for ConnectReturnCode
sourceimpl Decodable for ConnectReturnCode
impl Decodable for ConnectReturnCode
type Error = VariableHeaderError
type Cond = ()
sourcefn 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)
sourceimpl Encodable for ConnectReturnCode
impl Encodable for ConnectReturnCode
sourceimpl PartialEq<ConnectReturnCode> for ConnectReturnCode
impl PartialEq<ConnectReturnCode> for ConnectReturnCode
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ConnectReturnCode) -> bool
fn ne(&self, other: &ConnectReturnCode) -> bool
This method tests for !=
.
impl Copy for ConnectReturnCode
impl Eq for ConnectReturnCode
impl StructuralEq for ConnectReturnCode
impl StructuralPartialEq for ConnectReturnCode
Auto Trait Implementations
impl RefUnwindSafe for ConnectReturnCode
impl Send for ConnectReturnCode
impl Sync for ConnectReturnCode
impl Unpin for ConnectReturnCode
impl UnwindSafe for ConnectReturnCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more